Hiya,
I'm a newbie to scriptographer, and I can't quite figure out how to find out the width of some text. I tried to extract it by using the width of its bounding box, but had no joy and the values in this rect appear to be uninitalized (0, or -32766)...
For example:
var pos = new Point(0.0, 0.0);
var someText = new PointText(pos);
someText.content = "Please help me";
someText.characterStyle.fontSize = 24.0;
var textWidth = someText.bounds.width;
print("someText width is " + textWidth);
I also tried using geometricBounds and controlBounds to find the width but still could not get it working. I am using Scriptographer 2.0.023 with CS3 on an intel mac.
Cheers, p0r1