0
点赞
收藏
分享

微信扫一扫

解决报错Text note: Client requested name “.SFNS-Regular“, it will get Times-Roman rather than the intend

pipu 2022-01-09 阅读 74

使用idea运行javafx项目时常常报错:

CoreText note: Client requested name ".SFNS-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:].

而运行结果也出现乱码:

原来是我的jdk版本太低(jdk11.0.12),换一个更高一点就OK了。

我在新建的页面,改用jdk17:

新建一个项目,然后运行:

 

就解决了。

 

 

举报
0 条评论