Default font rendering always was rather ugly in Java apps in Linux. But there was good solution - OpenJDK font fix (openjdk-fontfix
PPA in launchpad).
It worked great in PhPStorm 9 and previous versions, but it has stopped working in 10 version. Java options in config are identical.
Is there any way to fix font rendering?
Rendering before:
Rendering after:
Solution to fix this problem is simple: just rename jre folder in PHPStorm installation directory. Since 10 version app is bundled with its own JRE, so it doesn`t use system JRE by default.
Remove the bundled JRE
Add to bin/phpstorm64.vmoptions this two lines:
-Dswing.aatext=true
-Dawt.useSystemAAFontSettings=on
And in
Settings->Appearance & Behavior -> Apperance
Antialiasing:
IDE:Greyscale, Editor:Greyscale
Solution to fix this problem is simple: just rename jre folder in PHPStorm installation directory. Since 10 version app is bundled with its own JRE, so it doesn`t use system JRE by default.
At least on Arch Linux, when using OpenJDK, font rendering looks perfectly smooth. To force PHPStorm to use the system's OpenJDK instead of the bundled Oracle JDK, you have to set the environment variable WEBIDE_JDK
to your OpenJDK path.
To do this in an update-safe manner, copy the .desktop file to your home dir:
$ cp /usr/share/applications/jetbrains-phpstorm.desktop ~/.local/share/applications/
And then change the content to:
[Desktop Entry]
Version=1.0
Type=Application
Name=PhpStorm
Icon=/opt/phpstorm/bin/webide.png
Exec=env WEBIDE_JDK=/usr/lib/jvm/java-8-openjdk "/opt/phpstorm/bin/phpstorm.sh" %f
Comment=Develop with pleasure!
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-phpstorm
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With