code: private Point2D getGlyphCenter(final int index) {
  
          if (text.length() == 1) return getCenter();
  
          final Shape glyph = glyphs.getGlyphOutline(index);
          final Rectangle2D glyphBounds = transformedBounds(glyph);
  
          return new Point2D.Double(glyphBounds.getCenterX(), glyphBounds.getCenterY());
      }
docs: Determines the transformed centre of a specified glyph.
  
  @param index glyph index
  @return center point