Copy link to clipboard
Copied
Hi,
Does anyone have a link to where I can see all the alias's for all fonts in the artLayers.textItem.font argument?
For example, "Arial" is "ArialMT".
Kind Regards,
Dale
What font are available depends on what fonts are installed on a machine. You can get a Font List from Photoshop.
You can see how I got the list for my scripts dialog pull-down list. Xtools has a FontList script.
It is posible for a text layer in a document to have a font that is not installed on the current machine. Also a text layer can have more than a single font in it.
Copy link to clipboard
Copied
Create a text layer and run this script to show what it's name is:
#target photoshop
var doc = activeDocument;
alert(doc.activeLayer.textItem.font);
I don't think there is a master source to see all the fonts.
Copy link to clipboard
Copied
What font are available depends on what fonts are installed on a machine. You can get a Font List from Photoshop.
You can see how I got the list for my scripts dialog pull-down list. Xtools has a FontList script.
It is posible for a text layer in a document to have a font that is not installed on the current machine. Also a text layer can have more than a single font in it.
Re: how to select item into ListBox ?
Copy link to clipboard
Copied
Cheers JJ, I actually had xtools installed, so a bit embarrassing I hadn't seen that one!
Copy link to clipboard
Copied
If it helps anyone, I made the log slightly more readable by changing the below code:
fi.name = names.getString(i) ;
fi.postscript = psnames.getString(i);
fi.family = families.getString(i);
fi.style = styles.getString(i);
To:
fi.name = names.getString(i) ;
fi.postscript = " = " + psnames.getString(i);
// fi.family = families.getString(i);
// fi.style = styles.getString(i);
I don't need the family or style values, so if you need these you can modify as I have for the postscript info.