Register font file bytes for one face, so text set in it can render from
outlines above the size threshold.
Registration is cheap and synchronous: nothing is fetched, and the parser
is not even imported, until a frame actually asks for a glyph from this
face. Registering a face that is never drawn large costs one map entry.
The variant must match exactly what the layout tier resolved — this is
deliberately not a fallback chain. Painting 400-weight outlines at
700-weight advances, or upright outlines where the shader was going to
fake an oblique, looks worse than the SDF it replaced; a miss here falls
back down the ladder instead, which is always safe.
Register font file bytes for one face, so text set in it can render from outlines above the size threshold.
Registration is cheap and synchronous: nothing is fetched, and the parser is not even imported, until a frame actually asks for a glyph from this face. Registering a face that is never drawn large costs one map entry.
The variant must match exactly what the layout tier resolved — this is deliberately not a fallback chain. Painting 400-weight outlines at 700-weight advances, or upright outlines where the shader was going to fake an oblique, looks worse than the SDF it replaced; a miss here falls back down the ladder instead, which is always safe.