CFURLRef url = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, CFSTR("/path/to/font"), kCFURLPOSIXPathStyle, false);
CGDataProviderRef dataProvider = CGDataProviderCreateWithURL(url); CGFontRef theCGFont = CGFontCreateWithDataProvider(dataProvider); CTFontRef theCTFont = CTFontCreateWithGraphicsFont(theCGFont); CFRelease(theFont); CFRelease(dataProvider); CFRelease(url); //do something with the CTFontRef here CFRelease(theCTFont);
http://www.freetimestudios.com/2010/09/20/ipad-and-ios-4-custom-font-loading/
http://efreedom.com/Question/1-3972915/CoreText-Invalid-Kern-Subtable-CTFont 靠谱
https://nodeload.github.com/zynga/FontLabel/zipball/master zynge fontLabel 下载
http://stackoverflow.com/questions/360751/can-i-embed-a-custom-font-in-an-iphone-application
https://github.com/neror/CA360/blob/master/Classes/Samples/TextLayers.m
http://stackoverflow.com/questions/2707710/core-texts-ctframesettersuggestframesizewithconstraints-returns-incorrect-size