FontFeatureRegistry
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
Registers the set written as a comma-separated list of settings — kern 0, -kern, +dlig, ss01 2 — and returns its id. Unparseable settings are skipped; a specification that yields none, or a full registry, returns Unset.
public static byte Register(ReadOnlySpan<FontFeature> features)Registers a set built in code and returns its id, Unset when the set is empty or the registry is full. Later duplicates of a tag win.
Returns the id of the union of two sets, where second wins a tag both carry. Either side being Unset returns the other.
public static ReadOnlySpan<FontFeature> Get(byte id)Returns the settings of a registered id, empty for Unset or an unknown id.
Id reserved for "no features". Get returns an empty set for it.
