// Indicate that the font is a fixed sized bitmap
FontMetrics metrics( fixedHeight,
0.0f,
- fixedHeight );
+ fixedHeight,
+ 0.0f,
+ 0.0f );
mFontCache.push_back( CacheItem( ftFace, path, pointSize, faceIndex, metrics, fixedWidth, fixedHeight ) );
id = mFontCache.size();
FontMetrics metrics( static_cast< float >( ftMetrics.ascender ) * FROM_266,
static_cast< float >( ftMetrics.descender ) * FROM_266,
- static_cast< float >( ftMetrics.height ) * FROM_266 );
+ static_cast< float >( ftMetrics.height ) * FROM_266,
+ static_cast< float >( ftFace->underline_position ) * FROM_266,
+ static_cast< float >( ftFace->underline_thickness ) * FROM_266 );
mFontCache.push_back( CacheItem( ftFace, path, pointSize, faceIndex, metrics ) );
id = mFontCache.size();
FontMetrics::FontMetrics( float ascenderPixels,
float descenderPixels,
- float heightPixels )
+ float heightPixels,
+ float underlinePositionPixels,
+ float underlineThicknessPixels )
: ascender( ascenderPixels ),
descender( descenderPixels ),
- height( heightPixels )
+ height( heightPixels ),
+ underlinePosition( underlinePositionPixels ),
+ underlineThickness( underlineThicknessPixels )
{
}
*/
FontMetrics( float ascenderPixels,
float descenderPixels,
- float heightPixels );
-
- float ascender; ///< The ascender in pixels.
- float descender; ///< The descender in pixels.
- float height; ///< The height in pixels.
+ float heightPixels,
+ float underlinePositionPixels,
+ float underlinePositionThickness );
+
+ float ascender; ///< The ascender in pixels.
+ float descender; ///< The descender in pixels.
+ float height; ///< The height in pixels.
+ float underlinePosition; ///< The underline position in pixels.
+ float underlineThickness; ///< The vertical height of the underline in pixels.
};
} // Dali