AdobeDocs/photoshop-api-docs-pre-release

Text editing overrides text styles in psd that are currently unsettable via API

pdkn opened this issue · 0 comments

pdkn commented

Expected Behaviour

When editing textLayers with a documentOperation, only values sent to api should be updated

Actual Behaviour

all text properties that are outside of API scope (currently) are reset to default values i.e kerning, leading, lineHeight, capitalisation etc. This means multiline text will be cut off if any of these properties are not default values in the psd being processed

Reproduce Scenario (including but not limited to)

a psd with a multilined textlayer with custom styles; lineheight, kerning, capitalisation etc (large Bold 'title' font style 144pt)
(Tested using a custom font)

Steps to Reproduce

do a documentOperation to edit the text.content, output to psd
note styling is lost

Platform and Version

All

Sample Code that illustrates the problem

https://github.com/AdobeDocs/photoshop-api-docs-pre-release#step-1-making-a-simple-edit-to-a-text-layer

Logs taken while reproducing problem

NA