TextureGroup / Texture

Smooth asynchronous user interfaces for iOS apps.
https://texturegroup.org/
Other
8.02k stars 1.29k forks source link

font error on iOS 13.2 #1728

Open ruixingchen opened 4 years ago

ruixingchen commented 4 years ago

I get this

CoreText note: Client requested name ".SFUI-Regular", it will get TimesNewRomanPSMT rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[UIFont systemFontOfSize:].

seems that Apple changes the API result currently I change ASTextKitCoreTextAdditions.mm:74 to UIFont *font = [UIFont systemFontOfSize:fontSize]; to fix the problem

jeffersonsetiawan commented 4 years ago

I think it is the same issue https://github.com/TextureGroup/Texture/issues/1659

kylehughes commented 4 years ago

Using ASTextNode2 fixed this for me without any other changes.

malqadi88 commented 4 years ago

if i used ASTextNode2 there another issue happened with me the NSTextAttachment not working fine So, any update to fix issue in ASTextNode ? @kylehughes