diff options
Diffstat (limited to 'src/ResourceLoader.cpp')
-rw-r--r-- | src/ResourceLoader.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ResourceLoader.cpp b/src/ResourceLoader.cpp index 3100c7f..fbcbe39 100644 --- a/src/ResourceLoader.cpp +++ b/src/ResourceLoader.cpp @@ -7,7 +7,7 @@ #include <assert.h> static std::string resource_root; -static std::array<std::unique_ptr<sf::Font>, 3> font_cache; +static std::array<std::unique_ptr<sf::Font>, 4> font_cache; static std::unordered_map<std::string, std::unique_ptr<sf::Texture>> texture_cache; namespace QuickMedia { @@ -46,6 +46,12 @@ namespace QuickMedia::FontLoader { font_file_name = "NotoSansCJK-Regular.ttc"; break; } + case FontType::SYMBOLS: { + noto_directories.push_back("/usr/share/fonts/noto"); + noto_directories.push_back("/usr/share/fonts/truetype/noto"); + font_file_name = "NotoSansSymbols2-Regular.ttf"; + break; + } } bool successfully_loaded_font = false; |