1
0
mirror of synced 2025-01-10 21:41:53 +01:00

fix: Default smooth font not being scaled correctly

This commit is contained in:
WerWolv 2025-01-03 00:15:28 +01:00
parent c82907153e
commit 2cf32ba38d

View File

@ -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!");