Skip to main content
December 5, 2025
Question

GetPostScriptFontName not working correctly with missing fonts

  • December 5, 2025
  • 2 replies
  • 273 views
For quire some time this approach was working perfectly in our plugin:
 
sAIFont->GetPostScriptFontName(fontKey, postScriptName, 1024);
 
But recently in 29-30 version of Illustrastor it does not return anything when the fonts are missing. The font names are still returned correctly when the fonts are installed in the system. But if they are not, this returns an empty string and the result is an error. Other similar methods from AIFont are also not working correctly.
 
I have also tested it in the recent Illustrator Beta, with the same result.
 
Can someone explain what is happening and why this was somehow changed and how should it work now?

2 replies

Legend
December 6, 2025

Are you sure you got a font key at all? I already had problems using AIFont::FontKeyFromFont …

This likely is caused by the new feature that renders text with missing fonts using the subset embedded in the PDF side of the file, rather than the traditional pink.
Somewhere in prefs there might be a toggle to choose the old behaviour. I have not yet even tried to find it, plus figure out whether it works and via what SDK call, currently using something far more convoluted and waiting for a real fix.
A better place to raise such issues is the SDK section in prerelease, and the associated bugbase.

December 8, 2025

I am definitely getting font keys, because if the fonts are not missing the very same method returns all the font names absolutely correctly. Anyway, I'll try to post in the SDK forum.

January 8, 2026

@24056378 : This is most likely due to the recent feature that renders text with missing fonts with the embedded glyphs in the PDF. Now, in case of missing fonts, the fontkey will be null.

Could you please explain your workflow. From where are your getting the font key, is it from the selection ? Kindly share the details to let us help you further.

m1b
Community Expert
Community Expert
December 6, 2025

Hi @24056378 I'm not sure this is the best forum to ask about this. I think there are developer forums that might be better, or feedback on the beta version. I'm not sure where is the best place to post or who to tag. @Dirk Becker any ideas about this?