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

Use of .fontName deprecated in Xcode 11 #207

Open
wfgilman opened this issue Jun 7, 2020 · 3 comments
Open

Use of .fontName deprecated in Xcode 11 #207

wfgilman opened this issue Jun 7, 2020 · 3 comments
Labels

Comments

@wfgilman
Copy link

wfgilman commented Jun 7, 2020

I love this library ❤️ With Xcode 11 I started getting the following error:

2020-06-06 20:30:23.609206-0700 Project1[95342:6267628] 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-06-06 20:30:23.609401-0700 Project1[95342:6267628] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.

I researched the issue and it's the use of .fontName to instantiate a font that causes the error. This technique is used by the library to scale the placeholder font. The result is the placeholder always displays in TimesNewRoman. Boo.

Linke to issue: https://stackoverflow.com/questions/58706570/how-can-i-find-the-source-of-this-font-related-coretext-warning-in-ios13.

I'd love to see this fixed 🙂

@stale
Copy link

stale bot commented Jun 11, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 3 days if no further activity occurs.

@stale stale bot added the stale label Jun 11, 2021
@egorbedunkevich
Copy link

Has this been solved? Seems to be an issue still on iOS 14 running the newest version of Xcode.

@stale stale bot removed the stale label Aug 17, 2021
@stale
Copy link

stale bot commented Apr 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 3 days if no further activity occurs.

@stale stale bot added the stale label Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants