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..
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.