Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos CTFontManagerRegister。。。对于第三方应用程序_Macos_Cocoa_Fonts_Core Text - Fatal编程技术网

Macos CTFontManagerRegister。。。对于第三方应用程序

Macos CTFontManagerRegister。。。对于第三方应用程序,macos,cocoa,fonts,core-text,Macos,Cocoa,Fonts,Core Text,这有点基本,但我一直在努力寻找有关NSFontManager和CTFontManager的好文档来实现这一点。下面是一个场景: Keynote(或其他开发人员提供的任何现有应用程序)打开一个使用未激活字体的文件 我的应用程序有这种字体,我使用CTFontManagerRegisterFontURLs或类似的方法来激活它 Keynote会收到字体现在可用的通知 我可以想象有一个NSFontManager通知丢失字体,但没有发现任何东西。这些通知似乎在我自己的应用程序的沙箱中。这里有没有人知道我在哪

这有点基本,但我一直在努力寻找有关NSFontManager和CTFontManager的好文档来实现这一点。下面是一个场景:

  • Keynote(或其他开发人员提供的任何现有应用程序)打开一个使用未激活字体的文件

  • 我的应用程序有这种字体,我使用CTFontManagerRegisterFontURLs或类似的方法来激活它

  • Keynote会收到字体现在可用的通知

  • 我可以想象有一个NSFontManager通知丢失字体,但没有发现任何东西。这些通知似乎在我自己的应用程序的沙箱中。这里有没有人知道我在哪里可以找到这样(或几乎这样)的东西

    非常感谢你