• Functions to manipulate font resources at runtime. These map to the global "font" Lua module.

Static methods

@:has_untypedstaticinlineaddGlyphs(path:HashOrString, text:String, ?callback:(FontRequestId, Bool, Null<String>) ‑> Void):FontRequestId

  • Asynchronously add glyphs to a .fontc resource.

Parameters:

path

The path to the .fontc resource

text

A string with unique unicode characters to be loaded

callback

Optional callback called when the request finishes: (request_id, result, errstring)

Returns:

The asynchronous request id

@:native("remove_glyphs")staticremoveGlyphs(path:HashOrString, text:String):FontRequestId

  • Remove glyphs from the font.

Parameters:

path

The path to the .fontc resource

text

A string with unique unicode characters to be removed

Returns:

The asynchronous request id