StevenBevan
Technical User
We have a number of clients that supply us with PSD files created on Macs (possibly using PS 7) and we have a piece of PC software that modifies these files using JavaScript in CS. It gets the height and width of text layers, using:
Layer.textItem.width
Layer.textItem.height
However, in some of these files, the width and height returned is incorrect by an arbitrary amount.
For example:
Width from the Info palette = 264, width from script = 280
Info = 418, Script = 330
Info = 348, Script = 300
If I recreate the text layer on a PC using the same font and size values, the returned height and width are correct.
Has anyone had similar problems or know of a solution?
Any help would be much appreciated,
Steve
Layer.textItem.width
Layer.textItem.height
However, in some of these files, the width and height returned is incorrect by an arbitrary amount.
For example:
Width from the Info palette = 264, width from script = 280
Info = 418, Script = 330
Info = 348, Script = 300
If I recreate the text layer on a PC using the same font and size values, the returned height and width are correct.
Has anyone had similar problems or know of a solution?
Any help would be much appreciated,
Steve