#include <font.hpp>
Classes | |
struct | error |
Public Member Functions | |
manager () | |
~manager () | |
void | update_font_path () const |
Updates the font path, when initialized it sets the fontpath to game_config::path. More... | |
Private Member Functions | |
void | init () const |
Initializes the font path. More... | |
void | deinit () const |
Deinitializes the font path. More... | |
font::manager::manager | ( | ) |
font::manager::~manager | ( | ) |
Definition at line 378 of file font.cpp.
References clear_fonts(), and deinit().
|
private |
Deinitializes the font path.
Definition at line 431 of file font.cpp.
References filesystem::ENTIRE_FILE_PATH, filesystem::get_binary_paths(), filesystem::get_files_in_dir(), filesystem::is_directory(), and unicode_cast().
Referenced by update_font_path(), and ~manager().
|
private |
Initializes the font path.
Definition at line 392 of file font.cpp.
References filesystem::ENTIRE_FILE_PATH, ERR_FT, error(), filesystem::get_binary_paths(), filesystem::get_files_in_dir(), filesystem::is_directory(), LOG_FT, game_config::path, and unicode_cast().
Referenced by manager(), and update_font_path().
void font::manager::update_font_path | ( | ) | const |
Updates the font path, when initialized it sets the fontpath to game_config::path.
When this path is updated, this function should be called.
Definition at line 386 of file font.cpp.
References deinit(), and init().
Referenced by game_launcher::game_launcher().