Hi,
I'm trying to set a textview to use a monospaced font, the default monospace font and while it's working, I'm getting this warning.
The code I'm using is the one from Apple's docs:
textView.font = NSFont.monospacedSystemFont(ofSize: 12, weight: .regular)
but when I run my app the warning below shows up:
2020-04-04 09:18:10.725876-0500 Xcutioner[58296:2835209] CoreText note: Client requested name ".SFNSMono-Bold", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
Any idea on how to get rid of this warning? Is the preferred way to set a monospaced font not the one in Apple's documentation?
Thanks