Fix for CreateFont() when the font is a color one. 94/37294/1
authorVictor Cebollada <v.cebollada@samsung.com>
Tue, 24 Mar 2015 08:23:14 +0000 (08:23 +0000)
committerVictor Cebollada <v.cebollada@samsung.com>
Tue, 24 Mar 2015 08:23:14 +0000 (08:23 +0000)
  - The ascender + descender needs to be equal to the height.

Change-Id: I55855ef9b6da50dd8d4f05a97d6e72fe2695a84a
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
text/dali/internal/text-abstraction/font-client-plugin-impl.cpp

index 3b730f5..5e77174 100644 (file)
@@ -747,7 +747,7 @@ FontId FontClient::Plugin::CreateFont( const FontPath& path,
             float fixedHeight = static_cast< float >( ftFace->available_sizes[ i ].height );
 
             // Indicate that the font is a fixed sized bitmap
-            FontMetrics metrics( 0.0f,
+            FontMetrics metrics( fixedHeight,
                                  0.0f,
                                  fixedHeight );