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...
This commit is contained in:
Clownacy 2020-06-27 23:13:09 +01:00
parent 48935eb10d
commit 63dd995343

View file

@ -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;