Namespace: FontManager

FontManager

The static class that loads font files.

Methods

FontManager.isReady()booleanstatic

Loads the given font family from the given filename
Returns:
TypeDescription
booleanWhether all fonts are done loading

FontManager.load(family, filename)static

Loads the given font family from the given filename
NameTypeDescription
familystringThe name of the font family to load
filenamestringThe name of the filename to load from

FontManager.makeUrl(filename)stringstatic

Makes a full url from filename with extension
NameTypeDescription
filenamestringThe name of the font file
Returns:
TypeDescription
stringFull url including folder + filename + extension

FontManager.startLoading(family, url)static

Start the load process for the font family at the given url
NameTypeDescription
familystringThe name of the font family to start loading
urlstringFull url of the font file, including folder + filename + extension

FontManager.throwLoadError(family)static

Throws a retry screen error if a font could not be loaded
NameTypeDescription
familystringThe font family that caused the error
Throws:
A retry screen error