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
Text metrics #13
Comments
Yes indeed the rendering context should give back text metrics. |
I agree, I used feed by glyph as an example only. |
Depends on #16 |
Implemented width aka advance, further work depends on #17 |
For flow layout we need both |
Fixed, though some values aren't good. |
I think base render api must provide functions for getting metrics of text with selected style (font, size etc) like a width and height of string (may be more metrics).
FreeType provides
width
,height
,horiBearingX
,horiBearingY
,horiAdvance
,vertBearingX
,vertBearingY
,vertAdvance
about glyph.https://www.freetype.org/freetype2/docs/tutorial/step2.html
It's useful for develop highlevel libraries for example for rendering TeX formulas, tables with text and etc.
The text was updated successfully, but these errors were encountered: