When using IntelliJ this issue can be solved by disabling XRender. You can do this with the flag
-Dsun.java2d.xrender=false
Simply add this to the <IDEA_HOME>/bin/idea.vmoptions and it works.
Maybe this thread also helps: https://intellij-support.jetbrains.com/hc/en-us/community/posts/206240979-in...