Skip to main content

Module postscript

Module postscript 

Source
Expand description

PostScript hinting for a ScalerFont.

read-fonts runs the charstrings, and this crate’s PostScript hinter hints them before the font matrix is applied.

Structs§

HintedSubfont 🔒
A subfont and its hinting state at the size.
PostScriptHinter 🔒
The PostScript hinter, configured for one font at one size.

Constants§

CACHED_SUBFONTS 🔒
The number of subfonts whose hinting state is kept for a size. A subfont past them is read again for each glyph that needs it, so a font with thousands of subfonts costs no more to configure than one with eight.

Functions§

hint_params 🔒
Converts the parameters read by read-fonts into the hinter’s parameters.