Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

font error on iOS 13.2 #1728

Open
ruixingchen opened this issue Nov 13, 2019 · 3 comments
Open

font error on iOS 13.2 #1728

ruixingchen opened this issue Nov 13, 2019 · 3 comments

Comments

@ruixingchen
Copy link

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
Copy link

I think it is the same issue #1659

@kylehughes
Copy link

Using ASTextNode2 fixed this for me without any other changes.

@malqadi88
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants