Class · aurore

aurore::FontLoader

On this page
aurore/core/font.hpp
#include <aurore/core/font.hpp>

class aurore::FontLoader

Constructors 1

virtual ~FontLoader()

Functions 1

virtual void loadFonts() =0

Called once on init to load every font in the font stash.

The implementation must use the Application::loadFont and Application::loadFontFromMemory methods to load as much as possible of the "built-in" fonts defined in the FONT_* constants above.

font.hpp:56

Static attributes 3

static std::string USER_FONT_PATH = AURORE_ASSET("font/font.ttf")
static std::string USER_ICON_PATH = AURORE_ASSET("font/icon.ttf")
static std::string USER_EMOJI_PATH

Protected functions 2

bool loadFontFromFile(std::string fontName, std::string filePath)

Convenience method to load a font from a file path with some more logging.

font.hpp:63
bool loadMaterialFromResources()

Can be called internally to load the Material icons font from resources. Returns true if the operation succeeds.

font.hpp:69

Read from Aurore's headers by Doxygen at each build · library/include