在 netBeans 中运行程序时,字体看起来非常奇怪 [英] When running the program in netBeans the font looks extremely weird

查看:336
本文介绍了在 netBeans 中运行程序时,字体看起来非常奇怪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我在我的新 MacBook M1 上设置了 netBeans 和 SceneBuilder,一切正常,除了运行程序时的字体.

so I set up netBeans and a SceneBuilder on my new MacBook M1 and everything works, except of the font when running the program.

看起来像这样:

https://i.stack.imgur.com/8Yads.png

我不知道为什么.按钮应该说:点击我"和标签:你好".

and I have no clue why. The Button should say: "Click me" and the Label: "Hello".

我得到的错误信息是:

März 31, 2021 6:33:04 PM javafx.fxml.FXMLLoader$ValueElement processValue
WARNING: Loading FXML document with JavaFX API of version 16 by JavaFX runtime of version 11.0.2
2021-03-31 18:33:05.466 java[4349:140717] 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:].
2021-03-31 18:33:05.466 java[4349:140717] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.
2021-03-31 18:33:05.471 java[4349:140717] 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:].
2021-03-31 18:33:05.641 java[4349:140751] 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:].


我真的希望你能帮助我.谢谢!

I really hope you can help me. Thank you!

推荐答案

我已解决所有问题,请查看我的评论.

I fixed everything just check my comments.

这篇关于在 netBeans 中运行程序时,字体看起来非常奇怪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆