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:
parent
48935eb10d
commit
63dd995343
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue