Skip to content

FontAsset

The interface extends AssetMapData for compatibility

Extends

Implements

Constructors

new FontAsset()

new FontAsset(assetName, assetPath?): FontAsset

Parameters

assetName: string

assetPath?: string

Returns

FontAsset

Overrides

AssetMapData.constructor

Source

src/load/assets/FontAsset.ts:23

Properties

assetName

assetName: string

The name of the asset file.

Implementation of

IAsset.assetName

Inherited from

AssetMapData.assetName

Source

src/load/AssetMapData.ts:12


assetPath

assetPath: string = ''

Path to the asset

Implementation of

IAsset.assetPath

Inherited from

AssetMapData.assetPath

Source

src/load/AssetMapData.ts:20


assetType

assetType: AssetType

The type of the asset file.

Implementation of

IAsset.assetType

Inherited from

AssetMapData.assetType

Source

src/load/AssetMapData.ts:16


data

data: any

Implementation of

IAsset.data

Inherited from

AssetMapData.data

Source

src/load/AssetMapData.ts:26


resolutionSuffix

resolutionSuffix: string = ''

If resolution suffix is set the asset is loaded only on devices with the matched asset resolution

Implementation of

IAsset.resolutionSuffix

Inherited from

AssetMapData.resolutionSuffix

Source

src/load/AssetMapData.ts:24

Methods

destroy()

destroy(): void

Returns

void

Implementation of

IAsset.destroy

Inherited from

AssetMapData.destroy

Source

src/load/AssetMapData.ts:57


getAsset()

getAsset(): IBitmapFontData

Returns

IBitmapFontData

Implementation of

IAsset.getAsset

Source

src/load/assets/FontAsset.ts:30


getLoaderOptions()

getLoaderOptions(): undefined | Partial<any>

Returns

undefined | Partial<any>

Implementation of

IAsset.getLoaderOptions

Inherited from

AssetMapData.getLoaderOptions

Source

src/load/AssetMapData.ts:46


getResource()

getResource(): any

Returns

any

Implementation of

IAsset.getResource

Inherited from

AssetMapData.getResource

Source

src/load/AssetMapData.ts:38


isLoaded()

isLoaded(): boolean

Returns

boolean

Implementation of

IAsset.isLoaded

Overrides

AssetMapData.isLoaded

Source

src/load/assets/FontAsset.ts:38