鱼C论坛

 找回密码
 立即注册
查看: 3511|回复: 9

mac上运行easygui的warning问题

[复制链接]
发表于 2020-4-22 14:02:13 | 显示全部楼层 |阅读模式
4鱼币
安装easygui的时候用的  sudo pip3 install easygui ,版本是 easygui-0.98.1
在安装了easygui以后开始测试,可以正常运行,但是总是出现如下的warning,求大神帮忙。

2020-04-22 07:58:30.426 Python[1742:54763] 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 +[NSFont systemFontOfSize:].
2020-04-22 07:58:30.426 Python[1742:54763] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.
2020-04-22 07:58:30.456 Python[1742:54763] 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 +[NSFont systemFontOfSize:].
2020-04-22 07:58:30.458 Python[1742:54763] 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 +[NSFont systemFontOfSize:].
2020-04-22 07:58:30.458 Python[1742:54763] 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 +[NSFont systemFontOfSize:].
2020-04-22 07:58:30.458 Python[1742:54763] 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 +[NSFont systemFontOfSize:].
2020-04-22 07:58:30.458 Python[1742:54763] 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 +[NSFont systemFontOfSize:].
2020-04-22 07:58:30.458 Python[1742:54763] 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 +[NSFont systemFontOfSize:].
2020-04-22 07:58:30.459 Python[1742:54763] 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 +[NSFont systemFontOfSize:].
2020-04-22 07:58:31.622 Python[1742:54763] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2020-04-22 07:58:31.622 Python[1742:54763] Text input context does not respond to _valueForTIProperty:
2020-04-22 07:58:31.623 Python[1742:54763] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2020-04-22 07:58:31.623 Python[1742:54763] Text input context does not respond to _valueForTIProperty:

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-4-24 23:42:43 From FishC Mobile | 显示全部楼层
好像是你没装 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 +[NSFont systemFontOfSize:].
把所有的引号里的字体都装上。待会回复给下载链接。
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-4-24 23:46:23 From FishC Mobile | 显示全部楼层
先用软件把字体变成 Mac 能用的。因为是在 Windows 下载的。
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-4-24 23:51:56 From FishC Mobile | 显示全部楼层
哦对了,easygui 窗口的字体是不是用的 Times New Roman ?
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-4-24 23:57:42 From FishC Mobile | 显示全部楼层
吐槽一下,一个小小的字体问题,Python 把他搞得这么严重,真是的...
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2020-4-25 00:43:08 | 显示全部楼层
言16 发表于 2020-4-24 23:42
好像是你没装 Font ,然后 easygui 准备用 Times New Roman 字体代替,为了提示,展示一个 WARNING 。
Cor ...

您好,谢谢你的回复,我已经装了SF mono字体并且在pycharm里设置了字体为sf mono但是还是继续warning。求您的下载链接!谢谢了。
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-4-25 20:08:43 | 显示全部楼层
PyCharm 里运行就可能会产生各种各样的问题。转到 IDLE 上运行试试
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-4-25 20:26:54 | 显示全部楼层
本帖最后由 言16 于 2020-4-25 20:29 编辑

下载链接见下: SFMono.rar (49.94 KB, 下载次数: 4, 售价: 3 鱼币)
还有,把你的 EasyGUI 窗口以图片形式发过来
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-4-25 20:39:16 | 显示全部楼层
  1. # 如果觉得我的答案好的话,请点击上方 “设为最佳答案”,谢谢啦!
复制代码
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-5-23 12:24:44 | 显示全部楼层
2020年4月22日07:58 :30.426 Python [1742:54763] CoreText注意:客户端请求的名称为“ .SFNSMono-Regular”,它将获得Times-Roman而不是预期的字体。所有系统UI字体访问均应通过适当的API进行,例如CTFontCreateUIFontForLanguage()或+ [NSFont systemFontOfSize:]。
2020-04-22 07:58:30.426 Python [1742:54763] CoreText注意:在CTFontLogSystemFontNameRequest上设置一个断点以进行调试。
2020-04-22 07:58:30.456 Python [1742:54763] CoreText注意:客户端请求名称“ .SF NS Mono”,它将获得Times-Roman而不是预期的字体。所有系统UI字体访问都应通过适当的API,例如CTFontCreateUIFontForLanguage()或+ [NSFont systemFontOfSize:
2020-04-22 07:58:30.458 Python [1742:54763] CoreText注意:客户端请求的名称为“ .SFNSMono-Regular”,它将获得Times-Roman而不是预期的字体。所有系统UI字体访问均应通过适当的API进行,例如CTFontCreateUIFontForLanguage()或+ [NSFont systemFontOfSize:]。
2020-04-22 07:58:30.458 Python [1742:54763] CoreText注意:客户端请求名称“ .SF NS Mono”,它将获得Times-Roman而不是预期的字体。所有系统UI字体访问均应通过适当的API进行,例如CTFontCreateUIFontForLanguage()或+ [NSFont systemFontOfSize:]。
2020-04-22 07:58:30.458 Python [1742:54763] CoreText注意:客户端请求的名称为“ .SFNSMono-Regular”,它将获得Times-Roman而不是预期的字体。所有系统UI字体访问均应通过适当的API进行,例如CTFontCreateUIFontForLanguage()或+ [NSFont systemFontOfSize:]。
2020-04-22 07:58:30.458 Python [1742:54763] CoreText注意:客户端请求的名称为“ .SFNSMono-Regular”,它将获得Times-Roman而不是预期的字体。所有系统UI字体访问均应通过适当的API进行,例如CTFontCreateUIFontForLanguage()或+ [NSFont systemFontOfSize:]。
2020-04-22 07:58:30.458 Python [1742:54763] CoreText注意:客户端请求名称“ .SF NS Mono”,它将获得Times-Roman而不是预期的字体。所有系统UI字体访问均应通过适当的API进行,例如CTFontCreateUIFontForLanguage()或+ [NSFont systemFontOfSize:]。
2020-04-22 07:58:30.459 Python [1742:54763] CoreText注意:客户端请求的名称为“ .SFNSMono-Regular”,它将获得Times-Roman而不是预期的字体。所有系统UI字体访问均应通过适当的API进行,例如CTFontCreateUIFontForLanguage()或+ [NSFont systemFontOfSize:]。
2020-04-22 07:58:31.622 Python [1742:54763] imkxpc_getApplicationProperty:reply:以不正确的属性值4调用,调用。
2020-04-22 07:58:31.622 Python [1742:54763]文本输入上下文不响应_valueForTIProperty:
2020-04-22 07:58:31.623 Python [1742:54763] imkxpc_getApplicationProperty:reply:以错误的属性值4调用,调用。
2020-04-22 07:58:31.623 Python [1742:54763]文本输入上下文不响应_valueForTIProperty:


翻译后的结果,看看你就懂了
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-3-28 21:40

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表