diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-10-31 09:46:32 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-10-31 09:46:32 +0100 |
commit | d638a6092bd6291c983490ba3f966162c7ca06c2 (patch) | |
tree | 45b9421e0f3dd22265b33be8ecdcd974e12b0346 /include/FontLoader.hpp | |
parent | 11f644afe434ce6b6d570c9da2a95590321871b3 (diff) |
Load fonts on demand
Diffstat (limited to 'include/FontLoader.hpp')
-rw-r--r-- | include/FontLoader.hpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/FontLoader.hpp b/include/FontLoader.hpp new file mode 100644 index 0000000..bff0f18 --- /dev/null +++ b/include/FontLoader.hpp @@ -0,0 +1,19 @@ +#pragma once + +#include <string> + +namespace sf { + class Font; +} + +namespace QuickMedia::FontLoader { + enum class FontType { + LATIN, + LATIN_BOLD, + CJK, + EMOJI + }; + + // Note: not thread-safe + sf::Font* get_font(FontType font_type); +}
\ No newline at end of file |