Skip to main content
Participant
June 24, 2017
Question

How can I get different fonts in textItem object

  • June 24, 2017
  • 2 replies
  • 1016 views

Hi everyone, I'm currently working on js scripting.
I have .psd file with textLayers. I can access the tetxItem object and font property. However, font property only returns the font of the first character.

How can I get/detect other fonts or bold/italic texts?

Sample text: "Adobe Photoshop Forum"

Thank you,

This topic has been closed for replies.

2 replies

c.pfaffenbichler
Community Expert
Community Expert
June 30, 2017

Have you been able to use code from the other threads for your purposes?

monica_L6890535
Participating Frequently
October 17, 2017

Hi, I am a beginner in photoshop scripting, and I have looked at the code in other thread but it's really confusing to me. How would you generally let a single word to be a different font compared to other words within the sentence?

Thanks in advance.

c.pfaffenbichler
Community Expert
Community Expert
October 17, 2017

Some of the things in this thread might be of interest to you:

Changing color of text found with regex

c.pfaffenbichler
Community Expert
Community Expert
June 26, 2017