// Check if the glyph is actually on the path
if (charMidPoint != null) {
// Calculate the normal to the path (midline of glyph)
float angle = pl.angleAtLength(charMidPos);
// Define the transform of the glyph
AffineTransform glyphTrans = new AffineTransform();
// translate to the point on the path