开发者

Fonts on OpenJDK vs. Sun JDK 1.6 [Linux Platform]

I noticed that the Fonts on OpenJDK vs. S开发者_如何学Pythonun JDK look different. Java JDK has a better font set that accompanies it. Does anyone know what package the 'font' is and how I can have it on OpenJDK installations?

Thanks


It's an issue related to anti-aliasing when rendering Swing based GUIs. Anti-aliasing comes enabled by default with Oracle JDK, and for some reasons (that I never wanted to investigate) anti-aliasing is not enabled in OpenJDK.

You can enable anti-aliasing support with your current OpenJDK installation by adding this instruction to your ~/.bash_profile:

export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on"

Good luck!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜