Expand description
Glyph layout and vertical metrics of a font at one pixel size.
Structs§
- Font
Vertical Metrics - Vertical metrics of a font at one pixel size.
- Glyph
Pixel Bounds - Integer pixel box that a rasterized glyph covers, relative to the glyph origin.
Functions§
- align_
glyph_ to_ pixel_ grid - Rounds the glyph position to whole pixels when
static_text_motionis true. Otherwise the glyph is returned unchanged. - glyph_
pixel_ bounds - Returns the pixel box that
glyphcovers once outlined, orNonewhen it has no outline (for example a space). - layout_
line_ glyphs - Lays out
textas one line of glyphs, applying kerning.font_sizeis in pixels andoriginis the position of the first glyph on the baseline. - line_
advance_ width - Returns the advance width of
textas one line atfont_sizepixels, including kerning. - vertical_
metrics - Returns the vertical metrics of
fontatfont_sizepixels.