kishikawakatsumi / SECoreTextView

SECoreTextView is multi style text view.
MIT License
943 stars 143 forks source link

set font issue on iOS5 #17

Open foxling opened 10 years ago

foxling commented 10 years ago

i set font with system font, but it look like as bold font:

UIFont *font = [UIFont systemFontOfSize:14];
CTFontRef fontRef = CTFontCreateWithName((__bridge CFStringRef)font.fontName, font.pointSize, NULL);
id ctfont = (__bridge id)(fontRef);
_defaultAttributes = @{(id)kCTForegroundColorAttributeName: (id)[UIColor colorWithHexString:@"#474747"].CGColor, (id)kCTFontAttributeName: ctfont};

-2