Point2D (int glyphIndex) { boolean afterLast = glyphIndex == getNumGlyphs(); int index = getGlyphIndexInArray(glyphIndex - (afterLast ? 1 : 0)); return new Point(myGlyphPositions[index] + (afterLast ? myGlyphWidths[index] : 0), 0); }