Skip to main content

MAX_GLYF_POINTS

Constant MAX_GLYF_POINTS 

Source
pub(crate) const MAX_GLYF_POINTS: usize = _; // 65_535usize
Expand description

Maximum number of points in a TrueType outline.

TrueType uses a 16 bit integer to store contour end points so we must keep the total count within this value.

The maxp https://learn.microsoft.com/en-us/typography/opentype/spec/maxp table encodes maxCompositePoints as a uint16 so the spec enforces this limit.