Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 82585

Re: How to get bounds of bounding box of text item.

$
0
0

Actually what I done here is that,

- Created a paragraph type text

- Used Cntrl + T to know the left top coordinates of the bounding box.

- Matched these values from the values coming from script.

 

Following are the jpgs,

Original bounding box..

TFW.JPG

 

Here, x = 60px and y = 100 px , Using textItem.position I am getting exactly these values. No issue..

 

Bounding box shown in transform control i.e. When I use cntrl+T to the selected text item at x= 60px and y = 100px, the 'x' coordinate remains same but 'y' changes to approx 92 px as you can see in following image. I want to get this 'y' value. Is there any way to get this? And I also observe that the difference varies according to the text font size.

 

TF.JPG


Viewing all articles
Browse latest Browse all 82585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>