- // Get the font for the character.
- FontId fontId = GetFontId( index,
- fontRunIt,
- fontRunEndIt );
-
- // Get the script for the character.
+ CharacterIndex lastCharacter = startIndex + numberOfCharacters;
+ for( Length index = startIndex; index < lastCharacter; ++index )
+ {
+ // Get the current character.
+ const Character character = *( textBuffer + index );
+ bool isItalicRequired = false;
+ bool isBoldRequired = false;
+
+ // new description for current character
+ TextAbstraction::FontDescription currentFontDescription;
+ TextAbstraction::PointSize26Dot6 currentFontPointSize = defaultFontPointSize;
+ bool isDefaultFont = true;
+ MergeFontDescriptions( fontDescriptions,
+ defaultFontDescription,
+ defaultFontPointSize,
+ index,
+ currentFontDescription,
+ currentFontPointSize,
+ isDefaultFont );
+
+ // Get the font for the current character.
+ FontId fontId = fontClient.GetFontId( currentFontDescription, currentFontPointSize );
+
+ // Get the script for the current character.