From: Victor Cebollada Date: Tue, 24 Mar 2015 08:23:14 +0000 (+0000) Subject: Fix for CreateFont() when the font is a color one. X-Git-Tag: dali_1.0.38~4^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F94%2F37294%2F1;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git Fix for CreateFont() when the font is a color one. - The ascender + descender needs to be equal to the height. Change-Id: I55855ef9b6da50dd8d4f05a97d6e72fe2695a84a Signed-off-by: Victor Cebollada --- diff --git a/text/dali/internal/text-abstraction/font-client-plugin-impl.cpp b/text/dali/internal/text-abstraction/font-client-plugin-impl.cpp index 3b730f5..5e77174 100644 --- a/text/dali/internal/text-abstraction/font-client-plugin-impl.cpp +++ b/text/dali/internal/text-abstraction/font-client-plugin-impl.cpp @@ -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 );