Class R.resources.loaders.BitmapFontLoader
Extends
R.resources.loaders.ImageLoader.
Loads bitmap fonts and makes them available to the system.
Defined in: bitmapfontloader.js.
Constructor Attributes | Constructor Name and Description |
---|---|
- Fields borrowed from class R.resources.loaders.ImageLoader:
- loadAdjust
- Fields borrowed from class R.resources.loaders.RemoteLoader:
- STATUS_CACHED, STATUS_NOT_FOUND, STATUS_OK, STATUS_SERVER_ERROR
Method Attributes | Method Name and Description |
---|---|
get(name)
Get the font with the specified name from the cache.
|
|
Get the class name of this object
|
|
The name of the resource this loader will get.
|
|
load(name, url)
Load a font resource from a URL.
|
- Methods borrowed from class R.resources.loaders.ImageLoader:
- getDimensions, getImage, getResourceObject, loadImageResource
- Methods borrowed from class R.resources.loaders.RemoteLoader:
- exists, getPathUrl, setPathUrl
- Methods borrowed from class R.resources.loaders.AbstractResourceLoader:
- clear, destroy, exportAll, getCachedObjects, getResources, isReady, release, set, setReady, unload
- Methods borrowed from class R.engine.BaseObject:
- addEvent, addEvents, getElement, jQ, removeEvent, setElement, triggerEvent, update
- Methods borrowed from class R.engine.PooledObject:
- clearObjectDataModel, getId, getName, getObjectDataModel, getProperties, isDestroyed, setName, setObjectDataModel, toString, toXML
Class Detail
R.resources.loaders.BitmapFontLoader(name)
- Parameters:
- name
- {String=BitmapFontLoader} The name of the resource loader
Method Detail
{Object}
get(name)
Get the font with the specified name from the cache. The
object returned contains the bitmap as image and
the font definition as info.
- Parameters:
- name
- {String} The name of the object to retrieve
- Returns:
- {Object} The object representing the named font
{String}
getClassName()
Get the class name of this object
- Returns:
- {String} The string "R.resources.loaders.BitmapFontLoader"
{String}
getResourceType()
The name of the resource this loader will get.
- Returns:
- {String} The string "bitmap font"
load(name, url)
Load a font resource from a URL.
- Parameters:
- name
- {String} The name of the resource
- url
- {String} The URL where the resource is located