fix: Default smooth font not being scaled correctly
This commit is contained in:
parent
c82907153e
commit
2cf32ba38d
@ -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!");
|
||||
|
Loading…
x
Reference in New Issue
Block a user