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

Why the PostScript Name of font "Myriad Pro (OTF) Black Condensed" is empty when it's missing?

Explorer ,
Dec 30, 2013 Dec 30, 2013

Please refer to the following screen-shot, i'm not sure whether there is anything special in the font "Myriad Pro (OTF) Black Condensed", or a bug of InDesign?

My problem is that when I using the method AppendFontName() of IPMFont to inspect the text style, it returns the font name "MyriadPro-Regular" if the font is missing, while it returns "MyriadPro-BlackCond" if the font is not missing.

My expected result is that it should always return "MyriadPro-BlackCond". Because the second parameter of AppendFontName() is kTrue.

My code is like:

InterfacePtr<IPMFont> ipmFont( fontFamily->QueryFace( "Black Condensed" ) );

if( nil != ipmFont )

{

PMString psName;

pmFont->AppendFontName( psName, kTrue );

}

missing_font.png

Any comment will be appreciated.

------------------------------- Update ----------------------------------------

I'm not sure whether it's caused by the InDesign CS5, because the document has this problem was saved in CS5 before. And i tried to create a new document using CS6, using font "Myriad Pro Black Condensed", and then open it on another computer which doesn't have that font installed with CS6, the postscript name of the font is not empty.

Thanks,

Aidy

TOPICS
SDK
1.0K
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
no replies

Have something to add?

Join the conversation