+ totalNumberOfGlyphs += numberOfGlyphs;
+ numberOfNewGlyphs += numberOfGlyphs;
+
+ glyphs.Insert( glyphs.Begin() + glyphIndex, tmpGlyphs.Begin(), tmpGlyphs.End() );
+ glyphToCharacterMap.Insert( glyphToCharacterMap.Begin() + glyphIndex, tmpGlyphToCharacterMap.Begin(), tmpGlyphToCharacterMap.End() );
+ glyphIndex += numberOfGlyphs;
+
+ // Set the buffer pointers again.
+ glyphToCharacterMapBuffer = glyphToCharacterMap.Begin();
+
+ if( isNewParagraph )
+ {
+ // Add the index of the new paragraph glyph to a vector.
+ // Their metrics will be updated in a following step.
+ newParagraphGlyphs.PushBack( glyphIndex - 1u );
+ }
+