AltGlyphHandler altGlyphHandler = (AltGlyphHandler)this.aci.getAttribute(
GVTAttributedCharacterIterator.TextAttribute.ALT_GLYPH_HANDLER);
if (altGlyphHandler != null) {
// this must be an altGlyph text element, try and create the alternate glyphs
this.gv = altGlyphHandler.createGlyphVector(frc, this.font.getSize(), this.aci);
}
if (this.gv == null) {
// either not an altGlyph or the altGlyphHandler failed to create a glyph vector
this.gv = font.createGlyphVector(frc, this.aci);
}