Skip to main content
Participant
Jun 24, 2017 5:42 PM UTC
Question

How can I get different fonts in textItem object

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 is closed to new replies. Start a new post to keep the conversation going.

4 replies

c.pfaffenbichler
Community Expert
Community Expert
Jun 30, 2017 7:08 AM UTC

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

Translate
monica_L6890535
Participating Frequently
Oct 17, 2017 3:06 AM UTC

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.

Translate
c.pfaffenbichler
Community Expert
Community Expert
Oct 17, 2017 6:47 AM UTC

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

Changing color of text found with regex

Translate
c.pfaffenbichler
Community Expert
Community Expert
Jun 26, 2017 6:20 AM UTC