Skip to content

Adding ClearType to the Sun pdf-renderer

by werner on November 28th, 2009

Just for fun, I have added ClearType support to my EmbedPDF applet.

My applet is based on the excellent pdf-renderer Java library from Sun Microsystems.

Sub-pixel antialiasing is done in a post-processing step. First, the page is rendered at a scale factor of 3×2. Then it is scaled down using the ClearType class, which I found in this nice blog article by Julien Couvreur.

The screenshot below shows the same page once rendered with regular antialiasing, and once with sub-pixel antialiasing:



From → Java

Comments are closed.