- else
- {
- // There is no valid cached default font for the script.
-
- DefaultFonts* defaultFontsPerScript = NULL;
-
- // Emojis are present in many monochrome fonts; prefer color by default.
- const bool preferColor = ( TextAbstraction::EMOJI == script );
-
- // Find a fallback-font.
- fontId = fontClient.FindFallbackFont( character,
- currentFontDescription,
- currentFontPointSize,
- preferColor );
-
- if( 0u == fontId )
- {
- // If the system does not support a suitable font, fallback to Latin
- defaultFontsPerScript = *( defaultFontPerScriptCacheBuffer + TextAbstraction::LATIN );
- if( NULL != defaultFontsPerScript )
- {
- fontId = defaultFontsPerScript->FindFont( fontClient,
- currentFontDescription,
- currentFontPointSize );
- }
- }