Re: Photoshop: Get the height/width of a text layer?
Re: Photoshop: Get the height/width of a text layer?
- Subject: Re: Photoshop: Get the height/width of a text layer?
- From: "Duane L. Mitchell" <email@hidden>
- Date: Thu, 27 Feb 2003 22:08:17 -0500
Kenton said:
>
Your workaround sounds almost as convoluted as mine,
The solution is not so bad as the description which was an ordeal to
ascertain.
--create text
--move it to a known position
--get the postion -> {x,y1}, bottom left corner
--set text to paragraph text
--get the position -> {x,y2}, top right corner
--y1 - y2 is the height of the type
--set the text to fully justified
--get the width of the text
Now you have all the information you need about the type but it might not be
the best typography.
-Duane
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Duane L. Mitchell
Next Generation Solutions
31 Granby Road Worcester, MA 01604-1643
email@hidden 508-792-4396
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.