impr: Simplified custom font selection

This commit is contained in:
WerWolv
2025-01-18 19:03:55 +01:00
parent 2ba7db184b
commit 3129d6e8fd
14 changed files with 17 additions and 56 deletions

View File

@@ -993,11 +993,6 @@ namespace hex {
return *s_fonts;
}
static AutoReset<std::fs::path> s_customFontPath;
void setCustomFontPath(const std::fs::path &path) {
s_customFontPath = path;
}
static float s_fontSize = DefaultFontSize;
void setFontSize(float size) {
s_fontSize = size;
@@ -1079,10 +1074,6 @@ namespace hex {
});
}
const std::fs::path& getCustomFontPath() {
return impl::s_customFontPath;
}
float getFontSize() {
return impl::s_fontSize;
}