Skip to main content
Participant
September 30, 2021
Question

how after effcts check the missing fonts?

  • September 30, 2021
  • 1 reply
  • 436 views

i want to check the missing fonts when i launch the project, just like the after effects.

how after effects do this?

i collect the system fonts, but i find it doesn`t collect all the fonts. some of them are not collected.

let content = `
                [System.Reflection.Assembly]::LoadWithPartialName('System.Drawing');
                $fonts = New-Object System.Drawing.Text.InstalledFontCollection;
                $list = [System.Collections.ArrayList]@();
                foreach ($font in $fonts.Families){ $idx = $list.Add($font.Name); } 
                ConvertTo-Json($list)>$env:temp/fontlist.json;`;
child_process.spawn('powershell.exe', ['-c', `${content}`]);

is there a extendscript api can check the missing fonts or any other way to do this?

thanks for any help.

This topic has been closed for replies.

1 reply

Mylenium
Legend
September 30, 2021

Nope. This is handled internally by the font engine. There is no way to access this stuff with scripts AFAIK. The only way would be to generate a dummy text layer and then loop through all required fonts based on a list and see if they work or throw errors.

 

Mylenium

Known Participant
September 30, 2021

Thanks for the confirmation