You must use a DefaultFontMapper to register the fonts, othewise iText won't
know how to map the fonts and will only include the built-in ones.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Hubert Lingo [SMTP:[EMAIL PROTECTED]
> Sent: Thursday, June 26, 2003 14:06
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] Image coming from jFreeChart
> 
> Hi everyone,
>     I'm using jFreeChart to generate some charts. And then incorporate
> them 
> in my PDF files. It works fine, (thanks to the coders of iText). I only
> have 
> a small problem with fonts. Actually, when I put my chart into the PDF,
> the 
> fonts are not the same. Question is: is it a problem with iText or with 
> jFreeChart. How to verify what jFreeChart gives to iText? Below, a part of
> 
> the code I use to integrate charts into PDF.
> 
> 
>       PdfContentByte content = writer.getDirectContent();
>       JFreeChart chart = createChart(chartData);
>       content.saveState();
>       Graphics2D graphic = content.createGraphics(500, 400);
>       chart.draw(graphic, new Rectangle(0, 0, 500, 400));
>       graphic.dispose();
>       content.restoreState();
> 
> Thank you in advance for any advice.
> 
> Hubert
> 
> _________________________________________________________________
> MSN Messenger : discutez en direct avec vos amis ! 
> http://www.msn.fr/msger/default.asp
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to