apasccon / SearchTextField

UITextField subclass with autocompletion suggestions list
MIT License
1.15k stars 254 forks source link

System font not accessed through proper APIs causing Times New Roman #195

Open bilaalrashid opened 4 years ago

bilaalrashid commented 4 years ago

Times New Roman is used as the font for the subtitle, rather than the default San Francisco font. The font used for the main title is a sans-serif font, although it does not look like San Francisco.

Screenshot 2020-07-16 at 20 03 51

The following error is displayed in the console.

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:].
CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.
CoreText note: Client requested name ".SFUI-Semibold", 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:].

Occurring on both Simulator and iPhone X both running iOS 13.4.

schmidt9 commented 3 years ago

fixed in PR https://github.com/apasccon/SearchTextField/pull/199