Skip to main content

Module truetype

Module truetype 

Source
Expand description

TrueType hinting for a ScalerFont.

read-fonts loads the outline, and this crate’s interpreter hints it through the loader’s Hinter hook.

Structs§

FontHinter 🔒
The interpreter attached to the loader’s hook for one draw.
HintScratch 🔒
The working memory for a glyph program, carved from the caller’s block.
ScratchLengths 🔒
The working memory a glyph program needs beyond the outline.
TrueTypeHinter 🔒
The interpreter, configured for one font at one size.

Functions§

hdmx_widths 🔒
Returns the byte range of the widths in the hdmx record for ppem, if any.
hint_tables 🔒
Returns the tables the interpreter reads from tables.
prefer_interpreter 🔒
Returns true if FreeType would run the interpreter for tables rather than the automatic hinter.