The resources data of the game.
The resources loader of the game.
Return the font family associated to the specified font resource name. The font resource must have been loaded before. If that's not the case, a default font family will be returned ("Arial").
The name of the resource to get.
The font family to be used for this font resource, or "Arial" if not loaded.
Return the font file associated to the specified font resource name. The font resource must have been loaded before. If that's not the case, the resource name will be returned (to keep compatibility with GDevelop 5.0-beta56 and previous).
Should only be useful for renderers running on a non HTML5/non browser environment.
The name of the resource to get.
The file of the font resource.
Load the specified resources, so that fonts are loaded and can then be used by using the font family returned by getFontFamily.
Callback called each time a new file is loaded.
Callback called when loading is done.
Update the resources data of the game. Useful for hot-reloading, should not be used otherwise.
The resources data of the game.
Generated using TypeDoc
FontFaceObserverFontManager loads fonts (using
FontFace
orfontfaceobserver
library) from the game resources (seeloadFonts
), and allow to access to the font families of the loaded fonts during the game (seegetFontFamily
).