Hi I need using a couple of fonts with CTFontRef
for an iPad application , I need use this method because my font is not English . so I found this code from this site
but compiler gives me some error :
CTFontRef font = CTFontCreateWithName(CFSTR("myfont"), 12,NULL);
NSMutableAttributedStringRef attrString = [[NSMutableAttributedString alloc] initWithString:textView.text];
[attrString addAttribute:(NSString*)kCTFontAttributeName
value:(id)font
range: NSMakeRange(0, textView.text.length)];
I would be grateful if you help me to solve the problem