addBitmapFont(key, url, data, atlasData, atlasType, xSpacing, ySpacing)
Add a new Bitmap Font to the Cache.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
key | string | The key that this asset will be stored in the cache under. This should be unique within this cache. | ||
url | string | The URL the asset was loaded from. If the asset was not loaded externally set to | ||
data | object | Extra font data. | ||
atlasData | object | Texture atlas frames data. | ||
atlasType | string | <optional> | 'xml' | The format of the texture atlas ( 'json' or 'xml' ). |
xSpacing | number | <optional> | 0 | If you'd like to add additional horizontal spacing between the characters then set the pixel value here. |
ySpacing | number | <optional> | 0 | If you'd like to add additional vertical spacing between the lines then set the pixel value here. |
- Source code: loader/Cache.js (Line 462)
Please login to continue.