P: Unable to get TextItem.font when contents are empty
Version of the app:
24.3.0
Platform and OS version:
Windows/MacOS
Basic steps to reproduce the problem:
- Create a text layer with some contents
- Apply a font that is not MyriadPro-Regular
- Delete the text contents
- Add text contents back in with javascript (optional)
- Access the font property of the TextItem object with javascript
- Add text contents manually through the UI
- Access the font property of the TextItem object with javascript again
Expected result:
Step 5 should return the font applied in step 2, matching the one shown in the UI.
Actual result:
Step 5 returns the default font MyriadPro-Regular, conflicting with the correct font shown in the UI.
Step 7 returns the correct font applied in step 2.
Notes:
Using ScriptListener to record step 6 shows that over 500 lines of code are generated with various item-specific values, so this makes it prohibitive to work around the issue with that method just to reliably access the correct font.
