ui: Increase window size when a bigger font is being used

This commit is contained in:
WerWolv
2022-08-16 11:49:07 +02:00
parent 0c0caf6942
commit aa01d58b33
3 changed files with 4 additions and 2 deletions

View File

@@ -484,7 +484,7 @@ namespace hex::plugin::builtin {
}
// If a custom font has been loaded now, also load the font size
float fontSize = 13.0F * ImHexApi::System::getGlobalScale();
float fontSize = ImHexApi::System::DefaultFontSize * ImHexApi::System::getGlobalScale();
if (!fontFile.empty()) {
ImHexApi::System::impl::setCustomFontPath(fontFile);