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!
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
Copy link to clipboard
Copied
Excellent thank you!
This is fantastic!
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
Copy link to clipboard
Copied
Excellent thank you!