mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
impr: Disable hinting for pixel perfect font
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -51,6 +51,8 @@ namespace hex::fonts {
|
||||
config.FontLoaderFlags |= ImGuiFreeTypeLoaderFlags_SubPixel;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
config.FontLoaderFlags |= ImGuiFreeTypeLoaderFlags_NoHinting;
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user