Copy link to clipboard
Copied
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 );
}
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
Have something to add?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now