[OpenJDK 2D-Dev] Fonts dpi in Linux Gnome

Phil Race Phil.Race at Sun.COM
Thu Oct 16 11:44:10 UTC 2008

I think you are just seeing rounding to integral pixel sizes.
If you go into the Swing GTKLookAndFeel.java class you'll find a comment 
on this.


Jihed Amine Maaref wrote:
> Hi,
> Using Gnome, Java applications running with openjdk do not scale fonts 
> according to the dpi (dots per inch) value except for some limited 
> values. For example, fonts are rendered exactly the same way from a 
> dpi of 90 going to a dpi of 97 (only changes for dpi=89 and dpi=98), 
> this makes them look ugly and not proportional to the other desktop 
> applications font. It this a known bug we're working on or is there 
> already a way to configure fonts in openjdk to fix this ?
> Thanks and congratulations for this very welcome project.

More information about the 2d-dev mailing list