hxn

FontAssets

Decodes font assets while leaving byte caching and transport with hxn-assets.

Static methods

function decode(bytes:Bytes, ?options:FontOptions):Font

Runtime decoder for a typed @:dynamicAsset Font field. The caller owns the font.

function load(loader:AssetLoader, address:String, ?options:FontOptions):Future<Font>

Loads verified asset bytes and creates a new caller-owned font for this request.