ibireme / YYText

Powerful text framework for iOS to display and edit rich text.
MIT License
8.84k stars 1.68k forks source link

iOS 13 CTFontRef控制台报错 #916

Closed yangjw closed 4 years ago

yangjw commented 4 years ago

CoreText performance note: Client called CTFontCreateWithName() using name ".SFUI-Regular" and got font with PostScript name "TimesNewRomanPSMT". For best performance, only use PostScript names when calling this API.

yangjw commented 4 years ago

修改UIFont+YYAdd.m

  • CTFontRef font = CTFontCreateWithName((__bridge CFStringRef)self.fontName, self.pointSize, NULL);
  • CTFontRef font = CTFontCreateWithFontDescriptor((__bridge CTFontDescriptorRef)self.fontDescriptor, self.pointSize, NULL);
CoderYLZhang commented 2 years ago

UIFont+YYAdd.m 没有这个文件呢