如何获取OSX中的Postscript name

来源:互联网 发布:java wait 当前线程 编辑:程序博客网 时间:2024/06/06 20:14

前言

基于Core Text中根据Postscript name创建CGFontRef字体对象的CGFontCreateWithFontName(Postscript name)方法,需要知道Postscript name

操作如下

  1. Open the Font Book application. (It should be in your Applications folder.)

  2. Select the font you need the Postscript Name for.

  3. Select Show Font Info from the Preview Menu. ( Or use ⌘+i).

screenshot:fontbook font info

参考

  • http://apple.stackexchange.com/questions/79875/how-can-i-get-the-postscript-name-of-a-ttf-font-installed-in-os-x