if (s.length() > 0) {
float startOffset = 0;
int percentIndex = s.indexOf("%");
if (percentIndex != -1) {
// its a percentage of the length of the path
float pathLength = textPath.lengthOfPath();
String percentString = s.substring(0,percentIndex);
float startOffsetPercent = 0;
try {
startOffsetPercent = SVGUtilities.convertSVGNumber(percentString);
} catch (NumberFormatException e) {