float textLength,
int lengthAdjustMode) {
GeneralPath newPath = new GeneralPath();
PathLength pl = new PathLength(path);
float pathLength = pl.lengthOfPath();
float glyphsLength = (float) glyphs.getVisualBounds().getWidth();
// return from the ugly cases
if (path == null ||
glyphs == null ||