Skip to main content

MAX_SLOTS

Constant MAX_SLOTS 

Source
pub const MAX_SLOTS: u32 = _; // 65_536u32
Expand description

The number of slots the atlas can address, set by the u16 slot id an instance buffer carries.

A FontChain with more glyphs than this cannot be packed; a backend’s builder is expected to reject one, since GlyphAtlas::resolve has no slot to name them with.