Skip to main content

MAX_OUTLINE_POINTS

Constant MAX_OUTLINE_POINTS 

Source
pub const MAX_OUTLINE_POINTS: usize = _; // 65_536usize
Expand description

Maximum number of points in a single assembled outline.

A composite glyph accumulates the points of every component in its tree, so unlike the point count of one simple glyph this is not bounded by the format. A contour end point is a u16, so the last point an outline can name is u16::MAX, and it holds one more than that.