The resources loader of the game.
To be called when the game is disposed. Clear caches of loaded font families.
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.
Return the kind of resources handled by this manager.
Load the specified resources, so that fonts are loaded and can then be used by using the font family returned by getFontFamily.
Process the specified resource.
This method will only be run while loading screen is shown. It can do heavy tasks like parsing data.
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
).