How can I get different fonts in textItem object
Copy link to clipboard
Copied
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,
Explore related tutorials & articles
Copy link to clipboard
Copied
You need to use Action Manager code instead on DOM code.
https://forums.adobe.com/message/7915883#7915883
​Re: Re: How do I find the font for a specific character in a textItem?
Copy link to clipboard
Copied
Have you been able to use code from the other threads for your purposes?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Some of the things in this thread might be of interest to you:

