I'm using Itext on a Ubuntu machine to generate a couple of PDF's in a production system.
I'm having problems with the fonts not being displayed correctly, the spacing between letters is all messed upp. For Times new roman, i switched to using the Nimbus 9 .afm file(for some reason .ttf does not give me an improvment) from the texmf-texlive package in ubuntu, which works very well. I'm doing something like this String timesFont = "/usr/share/texmf-texlive/fonts/afm/urw/times/utmr8a.afm"; DefaultFontMapper mapper = new DefaultFontMapper(); DefaultFontMapper.BaseFontParameters pp; return mapper.pdfToAwt( BaseFont.createFont(timesFont, BaseFont.CP1250, BaseFont.EMBEDDED), size); However, It only works using the texmf .afm font's, all others are rendered incorrectly. I need to have fonts for Verdana,Georgia,Comic Sans and Courier, but i can't find any .afm files that works correctly. Of course, i would suspect that there is some underlying problem that I'm missing, but I'm out of ideas. All help is appreciated. -- View this message in context: http://itext-general.2136553.n4.nabble.com/Itext-font-rendering-problem-tp3758310p3758310.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php