Expand description
Limits applied when interpreting font data.
Font files can describe structures that recurse, refer to themselves, or are simply enormous. Nothing here comes from the OpenType specification: these are the bounds this crate places on how much work one operation will do before giving up, so that a malformed or hostile font cannot turn a parse into a hang.
Constants§
- MAX_
COMPOSITE_ EDGES - Maximum number of references followed while assembling one composite
glyph, whether a
glyfcomponent tree or aVARCgraph. - MAX_
FEATURE_ INDICES - Maximum total number of feature indices visited across the language systems of a layout table.
- MAX_
LANGSYS - Maximum number of language systems visited in a layout table’s script list.
- MAX_
LANGSYS_ FEATURE_ COUNT - Maximum total number of feature indices referenced by the language systems visited when pruning a layout table’s language systems.
- MAX_
LOOKUP_ VISIT_ COUNT - Maximum number of lookups visited by one layout closure operation.
- MAX_
OUTLINE_ POINTS - Maximum number of points in a single assembled outline.
- MAX_
RECURSION_ DEPTH - Maximum depth for structures that nest.
- MAX_
SCRIPTS - Maximum number of scripts visited in a layout table’s script list.