//float charMidPos = currentPosition + charAdvance / 2f;
float charMidPos = currentPosition + glyphWidth / 2f;
// Calculate the actual point to place the glyph around
Point2D charMidPoint = pl.pointAtLength(charMidPos);
// Check if the glyph is actually on the path
if (charMidPoint != null) {