From d9ba54f28501be43e9ddeccb2cea01ba1d341ff4 Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Mon, 12 Aug 2013 19:03:56 +0200 Subject: [PATCH] Improved text quality (especially visible at small sizes, and with pixelated fonts) (#228) --- src/SFML/Graphics/Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Graphics/Font.cpp b/src/SFML/Graphics/Font.cpp index 4b6bd2ca..32b6b3ee 100644 --- a/src/SFML/Graphics/Font.cpp +++ b/src/SFML/Graphics/Font.cpp @@ -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