From e2735e283e72d9108bef49958d6e8e608fb73e59 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 11 May 2025 17:07:19 +0200 Subject: [PATCH] fix: Text not rendering at all on the Web version --- plugins/fonts/include/font_settings.hpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/fonts/include/font_settings.hpp b/plugins/fonts/include/font_settings.hpp index de6917760..4615de1c5 100644 --- a/plugins/fonts/include/font_settings.hpp +++ b/plugins/fonts/include/font_settings.hpp @@ -7,9 +7,15 @@ namespace hex::fonts { class AntialiasPicker : public ContentRegistry::Settings::Widgets::DropDown { public: AntialiasPicker() : DropDown( + #if defined(OS_WEB) + std::vector({"hex.fonts.setting.font.antialias_none", "hex.fonts.setting.font.antialias_grayscale"}), + std::vector({"none", "grayscale"}), + nlohmann::json("grayscale") + #else std::vector({"hex.fonts.setting.font.antialias_none", "hex.fonts.setting.font.antialias_grayscale", "hex.fonts.setting.font.antialias_subpixel"}), - std::vector({"none" , "grayscale" , "subpixel"}), - nlohmann::json("subpixel") + std::vector({"none", "grayscale" , "subpixel"}), + nlohmann::json("subpixel") + #endif ){} };