Embed font in a mac bundle

前端 未结 2 880
执笔经年
执笔经年 2020-11-28 22:39

I have a program I am writing. I want to use a fancy font. Can I just embed my font into my bundle and use it from there.

My code...

NSMutableAtt         


        
2条回答
  •  旧时难觅i
    2020-11-28 23:20

    Some people had success using Carbon magic. You should try it out.

    That being said about the example above, ATSFontActivateFromFileSpecification was deprecated in Leopard. Apparently the replacement uses an FSRef directly, which is even better.

提交回复
热议问题