Improved font/text-antialiasing
Status: Beta
Brought to you by:
trainhappy
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.
Example:
<p style="font-family: Verdana; font-size: 12px; color:white; background-color:black; padding:20px">
kkkkwwww
</p>
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.
patch for HtmlBlockPanel.java