Module text_shaping

Source
Expand description

Contains functions for laying out single words (uses HarfBuzz for context-aware font shaping).

Structs§

CVec
HbBuffer
HbFont
HbScaledFont
HbShapedWord
Shaped word - memory of the glyph_infos and glyph_positions is owned by HarfBuzz, therefore the buf and font have to live as least as long as the word is in use.
ShapedWord

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

Type Aliases§

HbGlyphInfo
HbGlyphPosition