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

how after effcts check the missing fonts?

New Here ,
Sep 30, 2021 Sep 30, 2021

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.

TOPICS
FAQ , How to , Scripting
371
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
LEGEND ,
Sep 30, 2021 Sep 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

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
Community Beginner ,
Sep 30, 2021 Sep 30, 2021
LATEST

Thanks for the confirmation

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