Unable to call CoreTextFunctions
anandvijaymonotype opened this issue · comments
Anand Vijay commented
- (NSString )getPathForFont:(NSString)fontName
{
CTFontDescriptorRef fontRef = CTFontDescriptorCreateWithNameAndSize ((CFStringRef)fontName, 14);
CFURLRef url = (CFURLRef)CTFontDescriptorCopyAttribute(fontRef, kCTFontURLAttribute);
NSString *fontPath = nil;
if(url)
{
fontPath = [NSString stringWithString:[(NSURL *)CFBridgingRelease(url) path]];
}
return fontPath;
}