mac上运行easygui的warning问题
安装easygui的时候用的sudo pip3 install easygui ,版本是 easygui-0.98.1在安装了easygui以后开始测试,可以正常运行,但是总是出现如下的warning,求大神帮忙。
2020-04-22 07:58:30.426 Python CoreText note: Client requested name ".SFNSMono-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +.
2020-04-22 07:58:30.426 Python CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.
2020-04-22 07:58:30.456 Python CoreText note: Client requested name ".SF NS Mono", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +.
2020-04-22 07:58:30.458 Python CoreText note: Client requested name ".SFNSMono-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +.
2020-04-22 07:58:30.458 Python CoreText note: Client requested name ".SF NS Mono", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +.
2020-04-22 07:58:30.458 Python CoreText note: Client requested name ".SFNSMono-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +.
2020-04-22 07:58:30.458 Python CoreText note: Client requested name ".SFNSMono-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +.
2020-04-22 07:58:30.458 Python CoreText note: Client requested name ".SF NS Mono", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +.
2020-04-22 07:58:30.459 Python CoreText note: Client requested name ".SFNSMono-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +.
2020-04-22 07:58:31.622 Python imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2020-04-22 07:58:31.622 Python Text input context does not respond to _valueForTIProperty:
2020-04-22 07:58:31.623 Python imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2020-04-22 07:58:31.623 Python Text input context does not respond to _valueForTIProperty:
好像是你没装 Font ,然后 easygui 准备用 Times New Roman 字体代替,为了提示,展示一个 WARNING 。
CoreText note: Client requested name "请安装此字体", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +.
把所有的引号里的字体都装上。待会回复给下载链接。
先用软件把字体变成 Mac 能用的。因为是在 Windows 下载的。 哦对了,easygui 窗口的字体是不是用的 Times New Roman ? 吐槽一下,一个小小的字体问题,Python 把他搞得这么严重,真是的... 言16 发表于 2020-4-24 23:42
好像是你没装 Font ,然后 easygui 准备用 Times New Roman 字体代替,为了提示,展示一个 WARNING 。
Cor ...
您好,谢谢你的回复,我已经装了SF mono字体并且在pycharm里设置了字体为sf mono但是还是继续warning。求您的下载链接!谢谢了。 PyCharm 里运行就可能会产生各种各样的问题。转到 IDLE 上运行试试 本帖最后由 言16 于 2020-4-25 20:29 编辑
下载链接见下:
还有,把你的 EasyGUI 窗口以图片形式发过来
# 如果觉得我的答案好的话,请点击上方 “设为最佳答案”,谢谢啦! 2020年4月22日07:58 :30.426 Python CoreText注意:客户端请求的名称为“ .SFNSMono-Regular”,它将获得Times-Roman而不是预期的字体。所有系统UI字体访问均应通过适当的API进行,例如CTFontCreateUIFontForLanguage()或+ 。
2020-04-22 07:58:30.426 Python CoreText注意:在CTFontLogSystemFontNameRequest上设置一个断点以进行调试。
2020-04-22 07:58:30.456 Python CoreText注意:客户端请求名称“ .SF NS Mono”,它将获得Times-Roman而不是预期的字体。所有系统UI字体访问都应通过适当的API,例如CTFontCreateUIFontForLanguage()或+ [NSFont systemFontOfSize:
2020-04-22 07:58:30.458 Python CoreText注意:客户端请求的名称为“ .SFNSMono-Regular”,它将获得Times-Roman而不是预期的字体。所有系统UI字体访问均应通过适当的API进行,例如CTFontCreateUIFontForLanguage()或+ 。
2020-04-22 07:58:30.458 Python CoreText注意:客户端请求名称“ .SF NS Mono”,它将获得Times-Roman而不是预期的字体。所有系统UI字体访问均应通过适当的API进行,例如CTFontCreateUIFontForLanguage()或+ 。
2020-04-22 07:58:30.458 Python CoreText注意:客户端请求的名称为“ .SFNSMono-Regular”,它将获得Times-Roman而不是预期的字体。所有系统UI字体访问均应通过适当的API进行,例如CTFontCreateUIFontForLanguage()或+ 。
2020-04-22 07:58:30.458 Python CoreText注意:客户端请求的名称为“ .SFNSMono-Regular”,它将获得Times-Roman而不是预期的字体。所有系统UI字体访问均应通过适当的API进行,例如CTFontCreateUIFontForLanguage()或+ 。
2020-04-22 07:58:30.458 Python CoreText注意:客户端请求名称“ .SF NS Mono”,它将获得Times-Roman而不是预期的字体。所有系统UI字体访问均应通过适当的API进行,例如CTFontCreateUIFontForLanguage()或+ 。
2020-04-22 07:58:30.459 Python CoreText注意:客户端请求的名称为“ .SFNSMono-Regular”,它将获得Times-Roman而不是预期的字体。所有系统UI字体访问均应通过适当的API进行,例如CTFontCreateUIFontForLanguage()或+ 。
2020-04-22 07:58:31.622 Python imkxpc_getApplicationProperty:reply:以不正确的属性值4调用,调用。
2020-04-22 07:58:31.622 Python 文本输入上下文不响应_valueForTIProperty:
2020-04-22 07:58:31.623 Python imkxpc_getApplicationProperty:reply:以错误的属性值4调用,调用。
2020-04-22 07:58:31.623 Python 文本输入上下文不响应_valueForTIProperty:
翻译后的结果,看看你就懂了
页:
[1]