Skip to main content
nicholash68515175
Known Participant
Sep 20, 2023 1:08 AM UTC
Question

Create PostScript Font Mappings

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 is closed to new replies. Start a new post to keep the conversation going.

4 replies

Alex White
Legend
Sep 20, 2023 4:13 AM UTC

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
nicholash68515175
Known Participant
Sep 20, 2023 6:25 PM UTC

Excellent thank you!

 

 

Translate
Adobe Employee
Sep 20, 2023 1:15 AM UTC

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
nicholash68515175
Known Participant
Sep 20, 2023 6:24 PM UTC

Excellent thank you!

This is fantastic!

 

Translate