This content has been marked as final. Show 6 replies
you have to loop through all objects in selection,
compare their height (selObj.geometricBounds - selObj.geometricBounds) and return the maximum!
Sorry, my question wasn't clear. Under «symbol» I mean «text character» inside text frame. Character does not support property geometricBounds. And I wouldn't like to convert each character to outline.
Anybody? Tell if it is not possible.
The information is not directly available.
You can use the baseline and horizontalOffset of a character to get its y and x coordinates on the page (assuming no rotation). You can then use information about pointSize, leading (watch out for autoLeading), ascent and descent to get more information about height (similar but not the same information as you would get by converting to outlines and measuring that).
In CS3 you can get the width by using the endHorizontalOffset of the character. Or you can get the horizontalOffset of the next character (although you have to watch out for line-wraps in that case).
Thank you, Dave.
If you need precise information about the position of a specific glyph,
you can use createOutlines() and get the geometric bounds of the
Just make sure that you remove the outlines afterwards, and keep in mind
that this type of stuff is very "expensive" in terms of performance.