Change hint flag when load glyph from FreeType 76/171176/2
authorminho.sun <minho.sun@samsung.com>
Tue, 27 Feb 2018 07:37:53 +0000 (16:37 +0900)
committerminho.sun <minho.sun@samsung.com>
Fri, 16 Mar 2018 01:29:28 +0000 (10:29 +0900)
To improve quality of small texts, change hint flag when load glyph from
FreeType

Change-Id: I3efafe457f967b13a8b2304b739c876e2b7ce4ab
Signed-off-by: minho.sun <minho.sun@samsung.com>
dali/internal/text/text-abstraction/font-client-plugin-impl.cpp

index 6b1e491..faa61f0 100644 (file)
@@ -1009,7 +1009,7 @@ bool FontClient::Plugin::GetBitmapMetrics( GlyphInfo* array,
       else
 #endif
       {
-        int error = FT_Load_Glyph( ftFace, glyph.index, FT_LOAD_DEFAULT );
+        int error = FT_Load_Glyph( ftFace, glyph.index, FT_LOAD_NO_AUTOHINT );
 
         if( FT_Err_Ok == error )
         {
@@ -1102,7 +1102,7 @@ void FontClient::Plugin::CreateBitmap( FontId fontId, GlyphIndex glyphIndex, Dal
     else
 #endif
     {
-      error = FT_Load_Glyph( ftFace, glyphIndex, FT_LOAD_DEFAULT );
+      error = FT_Load_Glyph( ftFace, glyphIndex, FT_LOAD_NO_AUTOHINT );
     }
     if( FT_Err_Ok == error )
     {