title: Java: Fonts look garbled on Linux, but fine on windows
body: <p>I'm writing a java application that renders PDF documents to images, and when I run it on windows it works fine. But when I render the PDF on Linux, the standard fonts look a bit garbled, like there would be a few pixels missing on the right side of some characters.</p>
  
  <p>I only tested it on a fresh install of Ubuntu 9.04 with OpenJDK 6, but I'm quite sure I have seen similar issues before on Linux. I also tried to open the PDF with other Java PDF applications, like the SwingLabs PDFRenderer and the IcePDF Demo Applet, and they had the same problem. On windows they all render the document just fine. I also opened the document on the same Ubuntu machine with the default PDF viewer, evince. Evince rendered the document without the font issue, so I'm quite sure this is a general Java + Linux problem.</p>
  
  <p>For comparison:<br>
  <a href="http://img297.imageshack.us/img297/1073/windowsfonts.png" rel="nofollow noreferrer">This image</a> was rendered on Windows.<br>
  <a href="http://img140.imageshack.us/img140/6493/linuxfonts.png" rel="nofollow noreferrer">This image</a> was rendered on Linux. I marked a few garbled characters with red rings.<br>
  <a href="http://img297.imageshack.us/img297/90/hrtest.png" rel="nofollow noreferrer">This one</a> was also rendered on Linux. It looks like only standard fonts are affected.</p>
  
  <p>Any help is appreciated.</p>