Back to API Reference
Class
FontFeatureRegistry
static
Process-wide registry mapping OpenType feature sets to compact byte ids suitable for per-codepoint attribute storage, and back to the settings the shaper needs.
Remarks
The registry is additive: once a set is registered its id stays stable for the lifetime of the process, which is what lets shaping caches key on the id alone. Id 0 is reserved for "no features". A set is canonical — sorted by tag, one entry per tag — so equal sets always share an id, and the registry holds at most 255 of them.
Get is lock-free and safe on shaping worker threads; registration is not and belongs to the apply phase.public static ReadOnlySpan<FontFeature> Get()Returns the settings of a registered id, empty for Unset or an unknown id.
