UniTextFont
Serialized ScriptableObject wrapper around a runtime font Core. Stores font bytes, faceInfo and editor-tweakable settings; instantiates a Core on first Runtime access. The Core does all glyph work and is the type consumed by shaping/atlas code paths.
Derived Types(2)
Types that inherit from UniTextFont.
Nested Types
public Core Runtime{ get }Lazy-built runtime that owns the FT face, glyph tables and atlas pipeline. All glyph work flows through this. Subclasses override CreateRuntime to supply bytes from non-serialized sources.
public FaceInfo FaceInfo{ get; set }Font face metrics (ascender, descender, line height, etc.).
public Dictionary<long,Glyph> GlyphLookupTable{ get }(varHash48, glyphIndex) → atlas-resident Glyph. Null until the font's lookup tables are built.
protected virtual Core CreateRuntime()Subclass hook: produce the Core, or null if bytes unavailable.
protected virtual Core BuildRuntime()Subclass hook: instantiate a Core from bytes. Default uses serialized config.
public virtual UniTextFontError LoadFontFace()Loads the underlying FreeType face. Returns the resulting error code, or Success if already loaded.
public static UniTextFont CreateFontAsset()Builds a runtime UniTextFont from font file bytes. Compresses bytes in editor, stores raw at runtime; FT face is loaded once to populate FaceInfo and units-per-em.
