Fix a bug caching color fonts. 90/48190/1
authortaeyoon <taeyoon0.lee@samsung.com>
Wed, 16 Sep 2015 01:15:32 +0000 (10:15 +0900)
committertaeyoon <taeyoon0.lee@samsung.com>
Wed, 16 Sep 2015 01:17:12 +0000 (10:17 +0900)
 - Fix prevent issue for wrong operator used (FT_STYLE_FLAG_ITALIC/BOLD)

Change-Id: I90fb7e7561c898287f13babc957b21c5bce155f9

text/dali/internal/text-abstraction/font-client-plugin-impl.cpp

index aee273c..a842229 100644 (file)
@@ -1095,11 +1095,11 @@ FontId FontClient::Plugin::CreateFont( const FontPath& path,
           description.family = FontFamily( ftFace->family_name );
 
           // Note FreeType doesn't give too much info to build a proper font style.
-          if( ftFace->style_flags | FT_STYLE_FLAG_ITALIC )
+          if( ftFace->style_flags & FT_STYLE_FLAG_ITALIC )
           {
             description.slant = FontSlant::ITALIC;
           }
-          if( ftFace->style_flags | FT_STYLE_FLAG_BOLD )
+          if( ftFace->style_flags & FT_STYLE_FLAG_BOLD )
           {
             description.weight = FontWeight::BOLD;
           }