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

iOS 13 deprecates certain CTFont calls #809

Open
Permusoft opened this issue Apr 7, 2020 · 0 comments
Open

iOS 13 deprecates certain CTFont calls #809

Permusoft opened this issue Apr 7, 2020 · 0 comments

Comments

@Permusoft
Copy link

Apparently Apple is cracking down!

2020-04-07 16:32:51.136814-0400 MyApp[94123:1058712] 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:].
2020-04-07 16:32:51.136994-0400 MyApp[94123:1058712] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.

The result is that the text does indeed show as Times Roman.

The offending code is in static inline NSAttributedString * NSAttributedStringByScalingFontSize(NSAttributedString *attributedString, CGFloat scale) . There may be other places.

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

1 participant