Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Thanks for the confirmation