• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Font Names

Contributor ,
Nov 19, 2018 Nov 19, 2018

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

TOPICS
Actions and scripting

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 19, 2018 Nov 19, 2018

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  ?

Votes

Translate

Translate
Adobe
Community Expert ,
Nov 19, 2018 Nov 19, 2018

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 19, 2018 Nov 19, 2018

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  ?

JJMack

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 20, 2018 Nov 20, 2018

Copy link to clipboard

Copied

Cheers JJ, I actually had xtools installed, so a bit embarrassing I hadn't seen that one!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 20, 2018 Nov 20, 2018

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines