I'm writing a script for photoshop in Javascript to read from a list of words in a .txt document one at a time, add them to the image, export and then move onto the next word etc. Thats all well and good but I need to use an alternate style of the font, specifically I need to use single story "a" (circle with a line on the right) rather than the default a (circle with a curvy part on top), Is there a way to specify which stylistic set to use for the font within the script? You can do this within photoshop itself by clicking "Stylistic Alternates" in the type settings part of the text layer properties.
EDIT TLDR: I need my JS Photoshop script to use a stylistic alternate of a font, this setting here. How can I do this in the script?