impr: Disable hinting for pixel perfect font

This commit is contained in:
WerWolv
2025-07-11 15:04:21 +02:00
parent 88de5f6be4
commit 5782236379
2 changed files with 3 additions and 1 deletions

View File

@@ -1035,7 +1035,7 @@ namespace hex {
size = font->LegacySize;
}
if (!font->Sources[0]->PixelSnapH)
if (font->Sources[0]->PixelSnapH)
size *= System::getGlobalScale();
else
size *= std::floor(System::getGlobalScale());

View File

@@ -51,6 +51,8 @@ namespace hex::fonts {
config.FontLoaderFlags |= ImGuiFreeTypeLoaderFlags_SubPixel;
break;
}
} else {
config.FontLoaderFlags |= ImGuiFreeTypeLoaderFlags_NoHinting;
}
{