Donate Share

Lobo - Java Web Browser

Tracker: Feature Requests

5 Improved font/text-antialiasing - ID: 2630489
Last Update: Attachment added ( chdh )

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.


Christian d'Heureuse ( chdh ) - 2009-02-23 15:33

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
patch.diff patch for HtmlBlockPanel.java Download

Change ( 1 )

Field Old Value Date By
File Added 314791: patch.diff 2009-02-23 15:33 chdh