Class FontAsset
An Asset specialization that loads a Font object from file.
Constructors
| Name | Description |
|---|---|
this
(height, pixelRatio, owner)
|
Constructs an FontAsset.
|
Fields
| Name | Type | Description |
|---|---|---|
buffer
|
ubyte[] | Memory buffer for storing font data, typically for use with FreeType. |
font
|
Font | The loaded font object. |
monitorInfo
|
MonitorInfo | File monitoring information for the asset. |
threadSafePartLoaded
|
bool | Is thread-safe phase of an asset loading is done. |
threadUnsafePartLoaded
|
bool | Is thread-unsafe phase of an asset loading is done. |
Methods
| Name | Description |
|---|---|
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. |