Attempt to increase your outgoing resolution (dots per inch).

It may create a larger file and take slightly longer, but the resulting
text may be smoother.




From: Eric Douglas [] 
Sent: Tuesday, August 23, 2011 7:59 AM
Subject: RE: How do you smooth fonts?


I did all those rendering hints.  It still looks like it has a shadow.



From: Glenn Adams [] 
Sent: Tuesday, August 23, 2011 1:55 AM
Subject: Re: How do you smooth fonts?

enable font aliasing in whatever layer you are using for rendering

On Mon, Aug 22, 2011 at 2:57 PM, Eric Douglas <>

When I transform XSLFO with FOP I can send the output to PDF or AWT and
text looks sharp. 
I'm trying to use the same fonts to generate graphics directly since I'm
programmatically generating the input to my FOP process and I don't
actually need the XSLFO process.

I know exactly what text I want to print, what size I want it, and
exactly where I want it on the page. 
I tried putting the text on an image and putting the image on a Swing
panel and it always comes out fuzzy.  It's even fuzzier if I try to save
that image to a file or send it to a printer.

I tried using the FOP classes for loading the font, using the
Java2DGraphicsState, FontInfo, and FontMetricsMapper objects to generate
the text.  It's always rendered blurry.  What could I be missing?


The information in this message may be proprietary and/or
confidential, and protected from disclosure.  If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify First Data
immediately by replying to this message and deleting it from your

Reply via email to