The current Lobo version uses VALUE_TEXT_ANTIALIAS_ON. This has the effect that even small, pixel-optimized fonts are drawn anti-aliased. For small fonts and e.g. white text on black background this looks very ugly.
<p style="font-family: Verdana; font-size: 12px; color:white; background-color:black; padding:20px">
Since Java 1.6, there is a new rendering hint VALUE_TEXT_ANTIALIAS_GASP, which draws small fonts correctly, see http://java.sun.com/javase/6/docs/api/java/awt/RenderingHints.html#VALUE_TEXT_ANTIALIAS_GASP .
The attached patch for HtmlBlockPanel changes HtmlBlockPanel.paint() to use the new rendering hint.
Log in to post a comment.