You chose the spacing. In the example it was 400 but 700 is probably a better value. Note that clibpdf creates a fake font that is synthesized by Acrobat. You'll be able to do exactly the same in the next release if you want to live dangerously.
Best Regards, Paulo Soares > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, March 29, 2004 8:49 AM > To: Paulo Soares; [EMAIL PROTECTED] > Subject: RE: [iText-questions] CPDF-Monospace (ClibPDF to > iText Migration Question) > > Hi Paolo! > > Thank you so much for all the help! > > I'm still having a few minor problems though, when I tried > your code, most of > the text were overlapping. > This was not very obvious when dealing with numbers, but was > very noticeable > when writing other characters. > > Would you know of a possible workaround for this? > > Thanks! > > Paul > > > > From: "Paulo Soares" <[EMAIL PROTECTED]> on 03/26/2004 10:51 AM GMT > > > "Paulo Soares" To: Paul Laborte-P/PGI, > > <[EMAIL PROTECTED]> > [EMAIL PROTECTED] > Cc: > > Subject: RE: [iText-questions] > CPDF-Monospace > 03/26/2004 06:51 PM (ClibPDF to iText Migration > Question) > > > > > > > > > > That's just helvetica with fixed width of 400. Create the font like > this: > > BaseFont bf = BaseFont.createFont("Helvetica", "winansi", > false, false, > null, null); > int widths[] = bf.getWidths(); > for (int k = 0; k < widths.length; ++k) { > if (widths[k] != 0) > widths[k] = 400; > } > bf.setForceWidthsOutput(true); > > The only problem here is that the font name is still Helvetica and it > can confuse some readers. I'll have a way to change the font > name in the > next version. > > Best Regards, > Paulo Soares > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On > > Behalf Of [EMAIL PROTECTED] > > Sent: Friday, March 26, 2004 6:30 AM > > To: [EMAIL PROTECTED] > > Subject: [iText-questions] CPDF-Monospace (ClibPDF to iText > > Migration Question) > > > > > > Hi all! > > > > Do you guys here know any exact replacement for > > CPDF-Monospace for iText? > > That would really save a lot of trouble from migrating to > > iText from ClibPDF. > > > > > > OT: Thanks a lot to Paolo for the PdfTemplate / UNDERSCORE answer. > > > > > > Have a nice day everyone! > > > > Paul > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux Tutorials > > Free Linux tutorial presented by Daniel Robbins, President > and CEO of > > GenToo technologies. Learn everything from fundamentals to system > > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > _______________________________________________ > > iText-questions mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > > > > > > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
