There is an issue in the comparison of the computed string lengths and
the min and max values because they are being compared as string
instead of floats. The following code needs to be change from...

if (emWidth > o.maxWidth)               { emWidth = o.maxWidth; }
else if (emWidth < o.minWidth)  { emWidth = o.minWidth; }

to...

if ((emWidth * 1) > (o.maxWidth * 1))           { emWidth = o.maxWidth; }
else if ((emWidth * 1) < (o.minWidth * 1))      { emWidth = o.minWidth; }

Works great with that fix. Thanks for a great script.

Mark

Reply via email to