前言
基于Core Text中根据
Postscript name
创建CGFontRef字体对象的CGFontCreateWithFontName(Postscript name)
方法,需要知道Postscript name
操作如下
Open the Font Book application. (It should be in your Applications folder.)
Select the font you need the Postscript Name for.
Select Show Font Info from the Preview Menu. ( Or use ⌘+i).
screenshot:fontbook font info