You can change PdfDocument.ratio. I'll have to modify the justification method because the current method won't work with arabic or script like fonts.
Best Regards, Paulo Soares ----- Original Message ----- From: "Shahzad Latif" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 26, 2002 20:35 Subject: RE: [iText-questions] font spacing > Once again, thanks Paulo. you are always great. Got a quicky: Any way I can > control this on my end in terms of leading/tracking of font? The text looks > ok for size greater than 12, but for 12 or less it gets too close. I was > wondering if I could do something programtically. > > Best Regards, > > Shahzad > ----Original Message Follows---- > From: Paulo Soares <[EMAIL PROTECTED]> > To: "'Shahzad Latif'" <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] > Subject: RE: [iText-questions] font spacing > Date: Fri, 26 Jul 2002 18:19:58 +0100 > MIME-Version: 1.0 > Received: from [195.23.132.149] by hotmail.com (3.2) with ESMTP id > MHotMailBF0ACFFC001D4136E80AC317849506F60; Fri, 26 Jul 2002 10:21:01 -0700 > Received: (qmail 24521 invoked from network); 26 Jul 2002 17:20:59 -0000 > Received: from unknown (195.23.132.9) by ratazana.ip.pt with QMQP; 26 Jul > 2002 17:20:59 -0000 > Received: from unknown (HELO mail2.ip.pt) ([194.79.69.132]) (envelope-sender > <[EMAIL PROTECTED]>) by espadarte.ip.pt (qmail-ldap-1.03) with > SMTP for <shai?[EMAIL PROTECTED]>; 26 Jul 2002 17:20:59 -0000 > Received: from mail.consiste.pt ([195.23.49.3]) by mail2.ip.pt with ESMTP > id SAA34488 for <[EMAIL PROTECTED]>; Fri, 26 Jul 2002 18:20:41 +0100 > (WEST) > Received: by MAIL with Internet Mail Service (5.5.2653.19)id <PSZMLZW3>; > Fri, 26 Jul 2002 18:19:59 +0100 > From [EMAIL PROTECTED] Fri, 26 Jul 2002 10:22:49 -0700 > Message-ID: <C5452020B3E4D5118D6F0002A55C882633F919@MAIL> > X-Mailer: Internet Mail Service (5.5.2653.19) > > It's probably a printer driver problem. The text looks good on screen and on > another printer? > > Best Regards, > Paulo Soares > > > -----Original Message----- > > From: Shahzad Latif [SMTP:[EMAIL PROTECTED]] > > Sent: Friday, July 26, 2002 15:31 > > To: [EMAIL PROTECTED] > > Subject: [iText-questions] font spacing > > > > Hi all: > > > > My appologies for posting twice(if so?). I am stuck in leading/tracking > > issues of the font (here: interstate regular). The final PDF seems ok, > but > > > > the production printout (some IBM printer) ends up in words too close to > > each other. Is there any way I can change the spacing between words using > > tracking or leading or anything. I have tried example: chap0202 with > > leading > > on phrase, but the end result ends up in no difference. May be I am > > missing > > something. > > > > bottomTextStr = "SOME TEXT IN CAPITAL LETTERS"; > > BaseFont bfInterstate = BaseFont.createFont(genResourceFolder+mainFont, > > BaseFont.CP1252, BaseFont.EMBEDDED); > > Font fontInterstate = new Font(bfInterstate); > > fontInterstate.setSize(fontHeadingSize); //15 > > fontInterstate.setColor(colorHeading); // cmyk: 0,0,0,0 > > Phrase bottomTextPh = new Phrase(24,bottomTextStr, fontInterstate); > > ct.setSimpleColumn(bottomLeftPos, bottomTextTop+1,fullWidth, 0, 15, > > Element.ALIGN_JUSTIFIED); > > ct.addText(bottomTextPh); > > > > Regards, > > > > Shahzad > > > > _________________________________________________________________ > > Join the world's largest e-mail service with MSN Hotmail. > > http://www.hotmail.com > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > iText-questions mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > > > _________________________________________________________________ > Send and receive Hotmail on your mobile device: http://mobile.msn.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
