NCA wrote:

> How can I use PdfGraphics2D to compute this ? ( I don't want to rewrite 
> all the JComponents UI.getPreferredSize code )
> Here is my code :

>       if ( fontMapper == null )
>          fontMapper = new DefaultFontMapper();

Please open the document in Adobe Reader and have a look
at the Fonts panel in the Document Properties window.
Do you see the font you are expecting, or was Helvetica
used instead? Maybe you need to write your own font mapper
so that the correct font is used.
Mapping Java fonts and actual fonts can be quite a burden.
br,
Bruno

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to