loadFontSDF
AssetLoaderModuleInterface::loadFontSDF
Loads a font from a file.
Declaration
virtual bool loadFontSDF(const std::string& filePath, Font& font) = 0;
Parameters
Name |
Type |
Description |
|---|---|---|
filePath |
const std::string& |
Path to the file to load. |
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 SDF font scales well, but is less precise than bitmap fonts when the text is small.