Class FontAsset

An Asset specialization that loads a Font object from file.

class FontAsset
  : Asset;

Constructors

NameDescription
this (height, pixelRatio, owner) Constructs an FontAsset.

Fields

NameTypeDescription
buffer ubyte[]Memory buffer for storing font data, typically for use with FreeType.
font FontThe loaded font object.
monitorInfo MonitorInfoFile monitoring information for the asset.
threadSafePartLoaded boolIs thread-safe phase of an asset loading is done.
threadUnsafePartLoaded boolIs thread-unsafe phase of an asset loading is done.

Methods

NameDescription
loadThreadSafePart (filename, istrm, fs, assetManager) Loads the thread-safe part of the font asset from a file.
loadThreadUnsafePart () Loads the thread-unsafe part of the font asset.
release () Releases all resources associated with this font asset.