fix: Unifont characters being scaled wrongly

Fixes #1616
This commit is contained in:
WerWolv
2024-03-25 20:41:39 +01:00
parent ce1d581c3f
commit 99abc4e78a

View File

@@ -281,7 +281,7 @@ namespace hex::plugin::builtin {
auto size = fontSize;
if (font.defaultSize.has_value())
size = font.defaultSize.value() * ImHexApi::System::getGlobalScale();
size = font.defaultSize.value() * std::floor(ImHexApi::Fonts::getFontSize() / ImHexApi::Fonts::DefaultFontSize);
cfg.SizePixels = size;