From 63dd995343579ef5663e5f4599dbac639b8fce08 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sat, 27 Jun 2020 23:13:09 +0100 Subject: [PATCH] Make 320x240 monochrome fonts not look terrible Turns out, for all this time, I never enabled FreeType's mono-hinting. Now, the English font looks pretty good. I can't say the same for the Japanese one though - that one looks identical. I guess Noto doesn't come with hinting data? FreeType's auto-hinter just makes it look worse... --- src/Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Font.cpp b/src/Font.cpp index e8e55c2c..d1868a70 100644 --- a/src/Font.cpp +++ b/src/Font.cpp @@ -968,7 +968,7 @@ static CachedGlyph* GetGlyphCached(FontObject *font_object, unsigned long unicod #ifndef DISABLE_FONT_ANTIALIASING if (FT_Load_Glyph(font_object->face, glyph_index, FT_LOAD_RENDER) == 0) #else - if (FT_Load_Glyph(font_object->face, glyph_index, FT_LOAD_RENDER | FT_LOAD_MONOCHROME) == 0) + if (FT_Load_Glyph(font_object->face, glyph_index, FT_LOAD_RENDER | FT_LOAD_MONOCHROME | FT_LOAD_TARGET_MONO) == 0) #endif { glyph->unicode_value = unicode_value;