[4.0] Change hint flag when load glyph from FreeType 77/171177/2
authorminho.sun <minho.sun@samsung.com>
Tue, 27 Feb 2018 07:37:53 +0000 (16:37 +0900)
committerMinho Sun <minho.sun@samsung.com>
Thu, 8 Mar 2018 05:41:03 +0000 (05:41 +0000)
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>
text/dali/internal/text-abstraction/font-client-plugin-impl.cpp

index c023044..09193c0 100644 (file)
@@ -1034,7 +1034,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 )
         {
@@ -1127,7 +1127,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 )
     {