Ugly fonts in Java applications on Ubuntu

后端 未结 6 2024
北海茫月
北海茫月 2021-01-29 18:57

Help me, please. It\'s screen of my Netbeans:\"enter PyCharm:

6条回答
  •  逝去的感伤
    2021-01-29 19:22

    After hours of searching and experimenting, I finally found a working solution!!! No need to mess up with fontforge, no need to patch your jdk, which is not allowed on a corporate workstation.

    1. REQUIRED Remove openjdk and install oracle jdk.
    2. Download deb from http://ppa.launchpad.net/no1wantdthisname/ubuntu/pool/main/f/fontconfig-infinality/
    3. Install it: sudo dpkg -i *.deb
    4. Enable osx font smoothing: sudo /etc/fonts/infinality/infctl.sh setstyle
    5. Reboot your system sudo reboot lightgdm

    If you are an Android Studio (Intellij) user, try add the following lines to your studio(64).vmoptions:

    -Dawt.useSystemAAFontSettings=on
    -Dswing.aatext=true
    -Dsun.java2d.xrender=true
    

提交回复
热议问题