Swing Font Defaults

| | Comments (0)

Fonts in Java look as ugly as sin, we all know this. Now, if you’re writing your own app or have the source code then you can get around this by setting the rendering hints on your JComponents. But if you don’t have the code, or can’t alter it because, for example, it would invalidate a support contract, is there any way of telling swing to use antialiasing on fonts by default? I’m hoping that there is some magic value that I can just add to my swing.properties file and be done with it, but an hour of searching on the net hasn’t found out what it is.

Leave a comment

About this Entry

This page contains a single entry by Ian Phillips published on January 16, 2004 8:01 AM.

Irrational Opinions was the previous entry in this blog.

Java Multiple Inheritance is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Pages

Powered by Movable Type 4.1