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

Create PostScript Font Mappings

Explorer ,
Sep 19, 2023 Sep 19, 2023

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
375
Translate
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

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

Translate
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

Excellent thank you!

This is fantastic!

 

Translate
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

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

Translate
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
LATEST

Excellent thank you!

 

 

Translate
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