Skip to content

Commit 0488c99

Browse files
committed
impr: Make icons look slightly nicer at low resolutions
1 parent 37bfd97 commit 0488c99

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/fonts/source/font_loader.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ namespace hex::fonts::loader {
8383

8484
config.MergeMode = true;
8585
for (auto &extraFont : ImHexApi::Fonts::impl::getMergeFonts()) {
86+
config.OversampleH = 2;
87+
config.OversampleV = 1;
88+
config.RasterizerDensity = 2;
8689
config.GlyphOffset = { extraFont.offset.x, -extraFont.offset.y };
8790
config.SizePixels = settings.getFontSize() * extraFont.fontSizeMultiplier.value_or(1) / ImHexApi::System::getNativeScale();
8891
atlas->AddFontFromMemoryTTF(const_cast<u8 *>(extraFont.fontData.data()), extraFont.fontData.size(), 0.0F, &config);

0 commit comments

Comments
 (0)