UXP text normalization issue, Transformed text layers lose visual size and position
Hello Adobe,
I’m developing a UXP plugin that normalizes transformed text layers (similar to Free Transform → Apply behavior). The goal is to recreate the text layer cleanly with the same visual appearance — same text, font, color, and point size, but without transformation.
While this works perfectly using ExtendScript (JSX), in UXP the results are inconsistent:
The new text appears much smaller than the original when the source layer was a paragraph text (area text).
Multiple new layers are created at random positions far from the original location.
The effective visual font size calculation based on boundsNoEffects vs. a clean text layer width seems unreliable in UXP.
It appears that UXP’s text creation and measurement APIs (batchPlay, bounds, textKey.textShape) handle paragraph text differently than JSX, breaking proportional scaling and position tracking.
Could you please investigate or confirm if this is a known limitation of the UXP Photoshop API?
We need consistent behavior between JSX text measurement and UXP’s batchPlay bounds for accurate size normalization.
Thank you for your time and for improving UXP stability for text-based plugins.
—
Othman Ahmed Akram
(Developer of Kashida Pro / Arabic Typography Tools)
