Home > Back-end >  JSVGCanvas svg is blurry
JSVGCanvas svg is blurry

Time:01-21

I have pretty much copy pasted the code from Blurry svg

CodePudding user response:

So with the help from another question of mine (here) I have come to this conclusion.
Due to the fact that I am working on a laptop with 14 inch screen, Windows has a recommendation for scaling my screen to 125% to improve readability.
So with the help from this answer (here) I set the "High DPI scaling override" to "System" for my java.exe.
But even though it fixed how the svg is displayed, it had problems with the text. So I added the System.setProperty("awt.useSystemAAFontSettings","on"); System.setProperty("swing.aatext", "true"); that @JustanotherJavaprogrammer mentioned in the comments and now everything seems to be fixed.

  •  Tags:  
  • Related