[ExtendScript] Cannot set some TextRange.characterAttributes after TextFrame.resize.
We cannot successfully set some TextFrame.textRange.characterAttributes after the TextFrame has been resized using TextFrame.resize.
(Tested on MacOS 15.4.1 Adobe Illustrator 29.5.1)
Steps to reproduce:
1. Create new document
2. Run the below script
Expected Result: all tests passed and no alert message appears.
Actual result: Failed to set characterAttributes.size to 12.
Script:
(function () {
var doc = app.activeDocument,
textFrame = doc.textFrames.add();
textFrame.textRange.contents = 'Hello.';
textFrame.resize(200, 200);
textFrame.textRange.characterAttributes.size = 12;
if (textFrame.textRange.characterAttributes.size !== 12)
alert('Failed to set characterAttributes.size to 12');
})();
NOTE: some other character attributes are "unsettable" also, eg. leading.
2
votes
