ref: 63dd995343579ef5663e5f4599dbac639b8fce08
parent: 48935eb10d9f5538277574804c7c3cbbfb036ff8
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sat Jun 27 19:13:09 EDT 2020
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...
--- a/src/Font.cpp
+++ b/src/Font.cpp
@@ -968,7 +968,7 @@
#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;