Improved text quality (especially visible at small sizes, and with pixelated fonts) (#228)
This commit is contained in:
parent
424c424376
commit
d9ba54f285
@ -403,7 +403,7 @@ Glyph Font::loadGlyph(Uint32 codePoint, unsigned int characterSize, bool bold) c
|
|||||||
return glyph;
|
return glyph;
|
||||||
|
|
||||||
// Load the glyph corresponding to the code point
|
// 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;
|
return glyph;
|
||||||
|
|
||||||
// Retrieve the glyph
|
// Retrieve the glyph
|
||||||
|
Loading…
Reference in New Issue
Block a user