Skip to content

FontAsset

interludesoftware.tick

Interlude.Tick

FontAsset Class

public class FontAsset

Inheritance System.Object → FontAsset

Methods

FontAsset.Load() Method

Builds Interlude.Tick.FontAsset.CharactersInOrder (a sparse list indexed by Unicode codepoint) and Interlude.Tick.FontAsset.KerningByFirst from the raw JSON-deserialised glyph and kerning lists. Must be called once after deserialisation before the font can be used for rendering.

public void Load();

FontAsset.Load(TextAsset) Method

Deserialises a FontAsset from the JSON text in asset and calls Load() to prepare it for rendering.

public static Interlude.Tick.FontAsset Load(TextAsset asset);

Parameters

asset UnityEngine.TextAsset

Returns

FontAsset