- Functions to manipulate font resources at runtime. These map to the global "font" Lua module.
Static methods
staticinlineaddGlyphs(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
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