+ // Retrieve the glyphs and the glyph to character conversion map.
+ Vector<GlyphInfo> tmpGlyphs;
+ Vector<CharacterIndex> tmpGlyphToCharacterMap;
+
+ GlyphInfo glyphInfo;
+ glyphInfo.softwareItalic = softwareItalic;
+ glyphInfo.softwareBold = softwareBold;
+
+ tmpGlyphs.Resize( numberOfGlyphs, glyphInfo );
+ tmpGlyphToCharacterMap.Resize( numberOfGlyphs );
+ shaping.GetGlyphs( tmpGlyphs.Begin(),
+ tmpGlyphToCharacterMap.Begin() );