【发布时间】:2020-11-08 20:42:10
【问题描述】:
在NSTextView 将字体设置为.monospacedSystemFont 时,Xcode 会显示有关无效字体的警告。示例:
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:]
【问题讨论】:
标签: swift xcode macos appkit nstextview