Working on an update of my app i notice that i get tons of warnings in the log when running the app in Xcode 11.2 on IOS13.
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:].
I dug around a bit and found this quote from WWDC:
As mentioned in numerous WWDC sessions, dot-prefixed font names are not to be directly used.
I am myself almost exclusively using IB and nibs to set fonts for textfields etc., and there is no reference to "SFUI-Regular" in my code anywhere, so i am not sure how to find the actual reason for these warnings (i have something like 20-30 rows of these in the logs).
Does anyone have any tips on how i can find where the warning comes from, and how to fix it?
There is another output in console, you can try to add a symbolic breakpoint
CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.