loadFontBitmap
AssetLoaderModuleInterface::loadFontBitmap
Loads a font from a file.
Declaration
virtual bool loadFontBitmap(const std::string& filePath, float fontHeight, Font& font) = 0;
Parameters
Name |
Type |
Description |
|---|---|---|
filePath |
const std::string& |
Path to the file to load. |
fontHeight |
float |
Height of the font, in pt. |
font |
Font& |
The font to put the information in. |
Returns
true if the font has been successfully loaded, else, if the font could not be loaded (for example: if the file does not exist, or the Asset Manager or Asset Loader Module does not support this font file format (including the case where there is no Asset Loader Module)), returns false.
Notes
A bitmap font does not scale well, but is more precise than SDF fonts when the text is small.