TextEngine
A CPU text engine with independent glyph atlases. It never draws or owns a GPU resource.
Constructor
function new()Static methods
function hxnAdopt(hxnRaw:Handle):TextEngineAn object for a value the library returned.
Properties
var hxnRaw:HandleMethods
function prepare(font:Font, text:String, options:TextOptions):PreparedTextfunction atlas(kind:AtlasKind, seenRevision:UInt):AtlasUpdatePass each texture consumer's last revision, or zero for a complete snapshot.
function generation():UIntfunction clear():VoidInvalidates prepared atlas coordinates while retaining registered fonts.
function clearFonts():VoidReleases retained fonts and caches, and invalidates prepared atlas coordinates.
function close():VoidReleases the native value now. The collector does it otherwise. Using this object afterwards throws.