Applying superscript to textItem
Hi,
I have developed a script that reads a csv file, and does stuff with the data it gets. So far working good. One issue I seem to be having though is trying to translate superscript tags into actual supserscript in photoshop.
Here is what I'm trying to illustrate:
String of text: "$10.00"
I would want the ".00" to be superscript. I don't really see any way to do this by looking at the documentation found here (https://www.adobe.com/content/dam/acom/en/devnet/photoshop/pdfs/photoshop-cc-javascript-ref-2019.pdf )
Can someone point me in the right direction on how I can achieve this? Here's some sample code that I am using to test:
layer.textItem.contents = "$10<sup>.00</sup>"
Obviously this wont work, but I am obviously trying to superscript the .00, I have dived as deep as I could into each property available on textItem. I would be open to splitting the string off, aplying one content, then applying another content with superscript. Which is what I was planning on doing, but can't quite seem to figure out how to get this style applied programmatically like this.
One thing I did try, is I applied a superscript to the layer's text to begin with, then before I mutate it, I alert(layer.textItem.content) and there's no special tag or anything, really hope there is a way to do this?
