Improved text quality (especially visible at small sizes, and with pixelated fonts) (#228)

This commit is contained in:
Laurent Gomila 2013-08-12 19:03:56 +02:00
parent 424c424376
commit d9ba54f285

View File

@ -403,7 +403,7 @@ Glyph Font::loadGlyph(Uint32 codePoint, unsigned int characterSize, bool bold) c
return glyph;
// Load the glyph corresponding to the code point
if (FT_Load_Char(face, codePoint, FT_LOAD_TARGET_NORMAL) != 0)
if (FT_Load_Char(face, codePoint, FT_LOAD_TARGET_NORMAL | FT_LOAD_FORCE_AUTOHINT) != 0)
return glyph;
// Retrieve the glyph