currentIndex++;
c = ci.next();
}
StringCharacterIterator sci = new StringCharacterIterator(s);
GVTGlyphVector gv = createGlyphVector(frc, sci);
float fontHeight = fontFace.getUnitsPerEm();
float scale = fontSize/fontHeight;
float ascent = fontFace.getAscent() * scale;
float descent = fontFace.getDescent() * scale;
int numGlyphs = gv.getNumGlyphs();
float[] baselineOffsets = new float[numGlyphs];
for (int i = 0; i < numGlyphs; i++) {
baselineOffsets[i] = (float)( gv.getGlyphMetrics(i).getBounds2D().getMaxY()
- gv.getGlyphPosition(i).getY());
}
float strikethroughOffset = fontFace.getStrikethroughPosition() * -scale;
float strikethroughThickness = fontFace.getStrikethroughThickness() * scale;
float underlineOffset = fontFace.getUnderlinePosition() * scale;