Fix a bug caching color fonts. 24/48024/1
authorVictor Cebollada <v.cebollada@samsung.com>
Fri, 11 Sep 2015 08:01:09 +0000 (09:01 +0100)
committerVictor Cebollada <v.cebollada@samsung.com>
Fri, 11 Sep 2015 08:03:09 +0000 (09:03 +0100)
Change-Id: I232f1ba17e7299407591fdbc56df446c592dae83
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
text/dali/internal/text-abstraction/font-client-plugin-impl.cpp

index e956622..aee273c 100644 (file)
@@ -1037,11 +1037,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;
               }