Skip to main content
nicholash68515175
Known Participant
September 20, 2023
Question

Create PostScript Font Mappings

  • September 20, 2023
  • 2 replies
  • 628 views

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!

This topic has been closed for replies.

2 replies

Alex White
Legend
September 20, 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

nicholash68515175
Known Participant
September 20, 2023

Excellent thank you!

 

 

Adobe Employee
September 20, 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

nicholash68515175
Known Participant
September 20, 2023

Excellent thank you!

This is fantastic!