From 2cf32ba38db0259f7d1f44e8de91db3da60572b6 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 3 Jan 2025 00:15:28 +0100 Subject: [PATCH] fix: Default smooth font not being scaled correctly --- plugins/fonts/source/font_loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/fonts/source/font_loader.cpp b/plugins/fonts/source/font_loader.cpp index 12b440aaa..cf91f61d5 100644 --- a/plugins/fonts/source/font_loader.cpp +++ b/plugins/fonts/source/font_loader.cpp @@ -330,7 +330,7 @@ namespace hex::fonts { if (pixelPerfectFont) defaultFont = fontAtlas.addDefaultFont(); else - defaultFont = fontAtlas.addFontFromRomFs("fonts/JetBrainsMono.ttf", 14, true, ImVec2()); + defaultFont = fontAtlas.addFontFromRomFs("fonts/JetBrainsMono.ttf", 14 * ImHexApi::System::getGlobalScale(), true, ImVec2()); if (!fontAtlas.build()) { log::fatal("Failed to load default font!");