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_TE
XT_ANTIALIAS_GASP .
The attached patch for HtmlBlockPanel changes HtmlBlockPanel.paint() to use
the new rendering hint.
Nobody/Anonymous
None
None
Public
| Filename | Description | Download |
|---|---|---|
| patch.diff | patch for HtmlBlockPanel.java | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| File Added | 314791: patch.diff | 2009-02-23 15:33 | chdh |