Expand description
Contains functions for laying out single words (uses HarfBuzz for context-aware font shaping).
Structs§
- CVec
- HbBuffer
- HbFont
- HbScaled
Font - HbShaped
Word - Shaped word - memory of the glyph_infos and glyph_positions is owned by HarfBuzz,
therefore the
buf
andfont
have to live as least as long as the word is in use. - Shaped
Word
Functions§
- get_
font_ metrics_ freetype - Get the baseline for a font, you’ll have to scale the font size then later on for your given font size