在Photoshop脚本中使用替代字体样式

发布于 2025-01-30 03:34:46 字数 339 浏览 3 评论 0原文

我正在javascript中编写一个用于Photoshop的脚本,以一次从.txt文档中的单词列表中读取,将它们添加到图像中,导出,然后移动到下一个单词等。这一切都很好,但是我很好需要使用替代风格的字体,特别是我需要使用单个故事“脚本中的字体设置哪种风格设置?您可以在Photoshop本身中单击文本层属性的类型设置部分中的“样式替代”来执行此操作。

编辑tldr:我需要我的JS Photoshop脚本来使用字体的风格替代方案,此设置。我该如何在脚本中执行此操作?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

未央 2025-02-06 03:34:46

我认为通过脚本实现这一目标将是一个重大痛苦。使用Action Manager脚本和ScriptListener生成的隐秘代码可能是可能的。

也许您最好只使用不同的字体上设置。

I think achieving this via script will be a major pain. It may be possible using Action Manager scripting and the cryptic code generated by ScriptListener.

Maybe you'll be better off simply setting on a different font altogether.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文