Skip to content

WebFontAsset

The interface extends AssetMapData for compatibility

Extends

Implements

  • IAsset<Partial<LoadFontData>>

Constructors

new WebFontAsset()

new WebFontAsset(assetName, data?, assetPath?): WebFontAsset

Parameters

assetName: string

data?: any

assetPath?: string

Returns

WebFontAsset

Overrides

AssetMapData.constructor

Source

src/load/assets/WebFontAsset.ts:7

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(): LoadFontData

Returns

LoadFontData

Implementation of

IAsset.getAsset

Source

src/load/assets/WebFontAsset.ts:15


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/WebFontAsset.ts:23