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

Create PostScript Font Mappings

Explorer ,
Sep 19, 2023 Sep 19, 2023

Copy link to clipboard

Copied

Hi,

 

Is there a way to get the PostScript Font Names? 

For example Arial Bold maps to `textDocument.font = 'ArialMT'` but this isn't very intuitive. Any thoughts?

We'd ideally like to be able to have a list of all the PostScript font names so we can programmatically set them all as desired!

TOPICS
Scripting

Views

147

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
Adobe Employee ,
Sep 19, 2023 Sep 19, 2023

Copy link to clipboard

Copied

Start here:

 

https://ae-scripting.docsforadobe.dev/other/fontsobject.html#fontsobject-allfonts

 

This will return all the Fonts which AfterEffects knows about as a new Font Object. With that you can get all sorts of interesting data about the Font itself.

 

Instead of calling 'textDocument.font' to get the PostScript name, you also now call 'textDocument.fontObject.postScriptName'.

 

There is a lot of new Font support - go check it out.

 

This is all in Beta at the moment.

 

Douglas Waterfall

After Effects Engineering

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
Explorer ,
Sep 20, 2023 Sep 20, 2023

Copy link to clipboard

Copied

Excellent thank you!

This is fantastic!

 

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
Enthusiast ,
Sep 19, 2023 Sep 19, 2023

Copy link to clipboard

Copied

If you need to get PostScript Font Names in current and previous versions of AE, I can recommend you installing Aeviewer (which is free extension), that has an API to access all available fonts installed in the system. Here is an API on getting system fonts:

https://github.com/axwt/aeviewer-api#get-an-object-with-available-system-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
Explorer ,
Sep 20, 2023 Sep 20, 2023

Copy link to clipboard

Copied

LATEST

Excellent thank you!

 

 

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