From d638a6092bd6291c983490ba3f966162c7ca06c2 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 31 Oct 2020 09:46:32 +0100 Subject: Load fonts on demand --- include/FontLoader.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/FontLoader.hpp (limited to 'include/FontLoader.hpp') 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 + +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 -- cgit v1.2.3