Skip to main content
Inspiring
February 13, 2014
Answered

Get PostScript font name

  • February 13, 2014
  • 1 reply
  • 3083 views

I know you can return the font face with

layer.textItem.font

That'll give you "Arial-BoldMT", but I'm after "Arial Bold"; which is the postscript font name

Is there no way to get the postscript font name without having to loop over app.fonts and match the font name and cross reference it to the postscript one?

Cheers

This topic has been closed for replies.
Correct answer Pedro Cortez Marques

When I loop on app.fonts, Arial gives me 3 properties:

Family:

Arial

Name:

Arial Bold

PostScript Name:

Arial-BoldMT

The layer.textItem.font gets always the property postScriptName and not the name

1 reply

Pedro Cortez Marques
Pedro Cortez MarquesCorrect answer
Legend
February 13, 2014

When I loop on app.fonts, Arial gives me 3 properties:

Family:

Arial

Name:

Arial Bold

PostScript Name:

Arial-BoldMT

The layer.textItem.font gets always the property postScriptName and not the name

GhoulfoolAuthor
Inspiring
February 13, 2014

M3rde. I've got my font names and postscript font names mixed up! That clears that problem up.