summaryrefslogtreecommitdiff
path: root/ui/font.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-01-26 17:48:11 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-01-26 17:48:11 +0000
commit30f58cc3832bd1b5a5cadf4b0a4a9d47d024f9f7 (patch)
tree0e347320e8295f03efb3d12bd85e76f838bf51d3 /ui/font.cpp
parentAlways set pixel unpack alignment before generating font texture content (diff)
downloadilt-30f58cc3832bd1b5a5cadf4b0a4a9d47d024f9f7.tar.bz2
ilt-30f58cc3832bd1b5a5cadf4b0a4a9d47d024f9f7.tar.xz
ilt-30f58cc3832bd1b5a5cadf4b0a4a9d47d024f9f7.zip
Remove the static font cache
Each thing can own/share a font rendering itself
Diffstat (limited to 'ui/font.cpp')
-rw-r--r--ui/font.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/ui/font.cpp b/ui/font.cpp
index f610a1b..237c22d 100644
--- a/ui/font.cpp
+++ b/ui/font.cpp
@@ -60,8 +60,6 @@ using Face = glRef<FT_Face,
},
FT_Done_Face>;
-Cache<Font, std::filesystem::path, unsigned int> Font::cachedFontRenderings;
-
Font::Font(std::filesystem::path p, unsigned s) : path {std::move(p)}, size {getTextureSize(s)}
{
generateChars(BASIC_CHARS);