【问题标题】:JavaFx wrong encoding in Intellij Mac [duplicate]Intellij Mac中的JavaFx错误编码[重复]
【发布时间】:2021-10-12 21:20:26
【问题描述】:

我制作了一个 JavaFX 程序,但是当我运行它时,文本编码是错误的。

The Java program running

2021-05-21 20:55:30.060 java[9662:328105] 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-05-21 20:55:30.060 java[9662:328105] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.
2021-05-21 20:55:30.441 java[9662:328105] 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-05-21 20:55:30.793 java[9662:328141] 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:].

【问题讨论】:

标签: java macos intellij-idea javafx encoding


【解决方案1】:

我遇到了类似的问题。在我的情况下,我能够通过将模块 SDK 从 Java SDK 11.0.12(撰写本文时的最新版本)切换到旧版本来解决该错误:11.0.8。

要更改 IntelliJ 中的 SDK,请访问: 文件 -> 项目结构 -> 模块

可在此处下载 Java 11.0.8: https://www.oracle.com/java/technologies/javase/jdk11-archive-downloads.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-03-12
    • 2022-01-01
    • 1970-01-01
    • 2015-08-08
    • 1970-01-01
    • 2021-11-16
    相关资源
    最近更新 更多