FontAsset
The interface extends AssetMapData for compatibility
Extends
Implements
Constructors
new FontAsset()
new FontAsset(
assetName
,assetPath
?):FontAsset
Parameters
• assetName: string
• assetPath?: string
Returns
Overrides
Source
src/load/assets/FontAsset.ts:23
Properties
assetName
assetName:
string
The name of the asset file.
Implementation of
Inherited from
Source
assetPath
assetPath:
string
=''
Path to the asset
Implementation of
Inherited from
Source
assetType
assetType:
AssetType
The type of the asset file.
Implementation of
Inherited from
Source
data
data:
any
Implementation of
Inherited from
Source
resolutionSuffix
resolutionSuffix:
string
=''
If resolution suffix is set the asset is loaded only on devices with the matched asset resolution
Implementation of
Inherited from
Source
Methods
destroy()
destroy():
void
Returns
void
Implementation of
Inherited from
Source
getAsset()
getAsset():
IBitmapFontData
Returns
Implementation of
Source
src/load/assets/FontAsset.ts:30
getLoaderOptions()
getLoaderOptions():
undefined
|Partial
<any
>
Returns
undefined
| Partial
<any
>
Implementation of
Inherited from
Source
getResource()
getResource():
any
Returns
any
Implementation of
Inherited from
Source
isLoaded()
isLoaded():
boolean
Returns
boolean