The Wayback Machine - https://web.archive.org/web/20201127045606/https://github.com/litehtml/litehtml/issues/106
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about el_text member variable m_size #106

Open
yiwangwuqian opened this issue Sep 28, 2019 · 1 comment
Open

about el_text member variable m_size #106

yiwangwuqian opened this issue Sep 28, 2019 · 1 comment

Comments

@yiwangwuqian
Copy link

@yiwangwuqian yiwangwuqian commented Sep 28, 2019

I have a question:
Why el_text member variable m_size.height always 16? And how make get_content_size method return correct value?

@tordex
Copy link
Member

@tordex tordex commented Sep 29, 2019

Look at el_text::parse_styles, the el_text::m_size.height is set into font font_metrics::height. Used the font selected with CSS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.