- // Get the handle to the font client.
- TextAbstraction::FontClient fontClient = TextAbstraction::FontClient::Get();
-
- // Pointer to the font id buffer.
- FontId* fontIdsBuffer = fontIds.Begin();
-
- // Traverse all the characters.
- for( CharacterIndex index = startIndex; index < numberOfCharacters; ++index )
+ // Initialize with the default font's point size.
+ fontPointSize = defaultPointSize;
+
+ // Initialize with the style parameters of the default font's style.
+ fontDescription = defaultFontDescription;
+
+ // Initialize as a default font.
+ isDefaultFont = true;
+
+ Length runIndex = 0u;
+
+ Length familyIndex = 0u;
+ Length weightIndex = 0u;
+ Length widthIndex = 0u;
+ Length slantIndex = 0u;
+ Length sizeIndex = 0u;
+
+ bool familyOverriden = false;
+ bool weightOverriden = false;
+ bool widthOverriden = false;
+ bool slantOverriden = false;
+ bool sizeOverriden = false;
+
+ // Traverse all the font descriptions.
+ const FontDescriptionRun* const fontDescriptionsBuffer = fontDescriptions.Begin();
+ for(Vector<FontDescriptionRun>::ConstIterator it = fontDescriptionsBuffer,
+ endIt = fontDescriptions.End();
+ it != endIt;
+ ++it, ++runIndex)