Improving Fonts in Charts titles, values, legends...

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
zulubadu

Improving Fonts in Charts titles, values, legends...

Post by zulubadu » Tue Feb 11, 2003 2:16 pm

Hi,

I'm using JasperReport combined with JFreeChart. For Chart titles, values, and Legends I'm using "Lucida Sans" Family Font provided by Sun JDK1.4 but the ouputed chart texts in the PDF looks quite ugly. Is there a way to improve it?

Any help would be really appreciated

Thanks

David Gilbert

Re: Improving Fonts in Charts titles, values, legends...

Post by David Gilbert » Tue Feb 11, 2003 3:06 pm

I'm not sure...what method are you using to get the charts into PDF? Are you incorporating an image? Or using the PDFGraphics2D implementation provided by iText (which is what JasperReports uses, I think)? Or some other way?

Regards,

Dave Gilbert

zulubadu

Re: Improving Fonts in Charts titles, values, legends...

Post by zulubadu » Tue Feb 11, 2003 3:16 pm

Hi,

The JasperReport version I'm using is 0.4.5, It uses iText 0.96.
Well, the thing is that JasperReport do everything behind the scene. From my part I generate the graphic as a java.awt.image.BufferedImage and assign it to a variable of the report at runtime.

I'm wondering if it is possible to Map a java logical font to PDF font while creating the Chart ?!! Heuh

Regards

David Gilbert

Re: Improving Fonts in Charts titles, values, legends...

Post by David Gilbert » Tue Feb 11, 2003 3:30 pm

If it is a BufferedImage that is being embedded into the PDF, then it won't matter which font you use since iText will just be seeing an image.

I'm about to get closer to the detail on these issues, as one of the tasks getting close to the top of my to-do list is to make JFreeChart integrate better with JFreeReport. I'll keep you posted.

Regards,

Dave Gilbert

zulubadu

Re: Improving Fonts in Charts titles, values, legends...

Post by zulubadu » Tue Feb 11, 2003 3:48 pm

ok, thanks

Regards

Locked