+ if( characterLayoutInfo.mIsColorGlyph )
+ {
+ styledCharacter.mStyle.SetFontName( EMOJI_FONT_NAME );
+ }
+ else
+ {
+ //Choose the right font for the given character and style.
+ ChooseFontFamilyName( styledCharacter );
+ }
+
+ const Font font = Font::New( FontParameters( styledCharacter.mStyle.GetFontName(), styledCharacter.mStyle.GetFontStyle(), styledCharacter.mStyle.GetFontPointSize() ) );
+ const Font::Metrics metrics = font.GetMetrics( character );
+ const float ascender = font.GetAscender();
+