Colobot
|
Class for loading config file. More...
#include <src/common/font_loader.h>
Public Member Functions | |
bool | Init () |
std::string | GetFont (Gfx::FontType type) |
std::string | GetDefaultFont (Gfx::FontType type) const |
std::string | GetFontType (Gfx::FontType type) const |
Class for loading config file.
bool CFontLoader::Init | ( | ) |
Loads fonts.ini
std::string CFontLoader::GetFont | ( | Gfx::FontType | type | ) |
Reads given font from file
std::string CFontLoader::GetDefaultFont | ( | Gfx::FontType | type | ) | const |
Const type method to read filenames of fonts from defaultFont map used as a fallback if it wasn't possible to read font from fonts.ini
std::string CFontLoader::GetFontType | ( | Gfx::FontType | type | ) | const |
Const type method converting Gfx::FontType to string