void MergeFontDescriptions( const Vector<FontDescriptionRun>& fontDescriptions,
Vector<FontId>& fontIds,
+ Vector<bool>& isDefaultFont,
const TextAbstraction::FontDescription& defaultFontDescription,
TextAbstraction::PointSize26Dot6 defaultPointSize,
CharacterIndex startIndex,
// Pointer to the font id buffer.
FontId* fontIdsBuffer = fontIds.Begin();
+ // Pointer to the 'is default' font buffer.
+ bool* isDefaultFontBuffer = isDefaultFont.Begin();
+
// Used to temporarily store the style per character.
TextAbstraction::FontDescription fontDescription;
TextAbstraction::PointSize26Dot6 fontSize;
const CharacterIndex lastCharacterPlusOne = startIndex + numberOfCharacters;
for( CharacterIndex index = startIndex; index < lastCharacterPlusOne; ++index )
{
- bool defaultFont = true;
+ bool& defaultFont = *(isDefaultFontBuffer + index - startIndex );
Length runIndex = 0u;