- Preparing search index...
- The search index is not available
pgul
Function createFontAssetManager
- createFontAssetManager<T>(pathMap: T, keyPrefix?: string): {
get(key: keyof T): FontFace;
load(key: keyof T): Promise<FontFace>;
loadAll(): Promise<FontFace[]>;
}
-
Type Parameters
-
T extends Record<string, string>
Parameters
-
pathMap: T
-
keyPrefix: string = ""
Returns {
get(key: keyof T): FontFace;
load(key: keyof T): Promise<FontFace>;
loadAll(): Promise<FontFace[]>;
}
-
get:function
- get(key: keyof T): FontFace
-
Returns FontFace
-
load:function
- load(key: keyof T): Promise<FontFace>
-
Returns Promise<FontFace>
-
loadAll:function
- loadAll(): Promise<FontFace[]>
-
Returns Promise<FontFace[]>
pathMapからkey型指定済みのAssetManagerを返す
Returns
AssetManager