ColumnText does proper tracking and spacing according to the set rules. If you make PdfDocument.ratio=10000000f tracking is eliminated and all that remains is word spacing. It's possible to change the width of the space character in BaseFont.getWidths(). Maybe that would be enough for you.
Best Regards, Paulo Soares ----- Original Message ----- From: "Shahzad Latif" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, August 13, 2002 13:01 Subject: Re: [iText-questions] ColumnText issues (was Re: leading, tracking, kerning) > I was able to use contentbyte's word and character spacing on column > text. > Problem is if either one or both get too large, the whole text ended up > off > the rectangle of columntext (horizontally). Well... with some trial and > errors, I was able to come up with a column width and the spacing in > sync. > For the time being, I am good with some compromizes. > > A proper tracking/kerning and other spacing params would be really nice > to > see in Sept/Oct release. > > Best regards, > > Shahzad > > > ----Original Message Follows---- > From: "Paulo Soares" <[EMAIL PROTECTED]> > To: "John Hardy" <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]> > Subject: Re: [iText-questions] ColumnText issues (was Re: leading, > tracking, > kerning) > Date: Tue, 13 Aug 2002 09:32:11 +0100 > MIME-Version: 1.0 > Received: from mc1-f1.law16.hotmail.com ([65.54.236.8]) by > mc1-s9.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.4905); Tue, 13 > Aug > 2002 02:06:20 -0700 > Received: from usw-sf-list2.sourceforge.net ([216.136.171.252]) by > mc1-f1.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.4905); Tue, 13 > Aug > 2002 02:02:44 -0700 > Received: from usw-sf-list1-b.sourceforge.net ([10.3.1.13] > helo=usw-sf-list1.sourceforge.net)by usw-sf-list2.sourceforge.net with > esmtp > (Exim 3.31-VA-mm2 #1 (Debian))id 17eXYx-0002DI-00; Tue, 13 Aug 2002 > 02:02:03 > -0700 > Received: from fep02-svc.mail.telepac.pt ([194.65.5.201])by > usw-sf-list1.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian))id > > 17eXYe-0005Wc-00for <[EMAIL PROTECTED]>; Tue, 13 Aug > > 2002 02:01:45 -0700 > Received: from psoaresnn ([212.55.183.214]) by fep02-svc.mail.telepac.pt > > (InterMail vM.5.01.04.13 201-253-122-122-113-20020313) with SMTP > > id <20020813090135.NLPN7864.fep02-svc.mail.telepac.pt@psoaresnn>; > > Tue, 13 Aug 2002 10:01:35 +0100 > Message-ID: <003c01c242a7$13779190$281e140a@psoaresnn> > References: <007001c24268$94310df0$[EMAIL PROTECTED]> > X-Priority: 3 > X-MSMail-Priority: Normal > X-Mailer: Microsoft Outlook Express 5.50.4522.1200 > X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 > Sender: [EMAIL PROTECTED] > Errors-To: [EMAIL PROTECTED] > X-BeenThere: [EMAIL PROTECTED] > X-Mailman-Version: 2.0.9-sf.net > Precedence: bulk > List-Help: > <mailto:[EMAIL PROTECTED]?subject=help> > List-Post: <mailto:[EMAIL PROTECTED]> > List-Subscribe: > <https://lists.sourceforge.net/lists/listinfo/itext-questions>,<mailto:i > [EMAIL PROTECTED]?subject=subscribe> > List-Id: Post all your questions about iText here > <itext-questions.lists.sourceforge.net> > List-Unsubscribe: > <https://lists.sourceforge.net/lists/listinfo/itext-questions>,<mailto:i > [EMAIL PROTECTED]?subject=unsubscribe> > List-Archive: > <http://www.geocrawler.com/redir-sf.php3?list=itext-questions> > X-Original-Date: Tue, 13 Aug 2002 09:32:11 +0100 > Return-Path: [EMAIL PROTECTED] > X-OriginalArrivalTime: 13 Aug 2002 09:02:44.0873 (UTC) > FILETIME=[3019C790:01C242A8] > > Auto-leading with irregular columns has to be done with approximations > and I > don't know if the new ColumnText model will allow it. We'll see. > > Best Regards, > Paulo Soares > > ----- Original Message ----- > From: "John Hardy" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, August 13, 2002 2:27 > Subject: [iText-questions] ColumnText issues (was Re: leading, tracking, > kerning) > > > > Great and being able to set word spacing would be a nice thing as > well. > > Oh > > yeah and while we're adding to your workload, Paulo ;-j do you have > any > > plans to fix the leading issues that occur when using non-rectangular > > columns? > > > > Normally when two fonts appear on the same line or with an image the > > leading > > should come from the largest item on the line (via > multipliedLeading). > > This > > works fine for "simple" i.e. rectangular columns but not with > > non-rectangular columns which instead assume a fixed leading for all > > lines. > > > > Looking at the code I can see that this is not going to be a > completely > > trivial problem to fix however because calculating the length of the > > line is > > then dependent on finding the intersection with the column outline at > > the > > height of the line. A solution would need to calculate both the line > > length > > and line height simultaneously and deal with cases like where columns > > that > > get narrower as they go down the page (i.e. the line nees to get > shorter > > as > > the line gets higher). > > > > ...john > > > > > > : Thank you. That's what I'm doing now (and must not do for > script-like > > : fonts). > > : > > : Best Regards, > > : Paulo Soares > > : > > : ----- Original Message ----- > > : From: "John Hardy" <[EMAIL PROTECTED]> > > : To: <[EMAIL PROTECTED]> > > : Sent: Sunday, August 11, 2002 1:39 > > : Subject: [iText-questions] Re: iText-questions digest, Vol 1 #691 - > 3 > > msgs > > : > > : > > : > Tracking is the uniform addition or subtraction of letter space > > to/from > > : > all > > : > the characters in a font. Tracking generally is used to increase > > letter > > : > spacing as type gets smaller and decrease it as type gets larger. > > : > > > : > : In October or November ColumnText will support kerning, several > > ways > > : > of > > : > : spacing for justified text and full features right-to-left text > > with > > : > arabic > > : > : shaping. Until then you are on your own. By the way, what's > > tracking, > > : > : typographically speaking? > > : > : > > : > : Best Regards, > > : > : Paulo Soares > > : > : > > : > : ----- Original Message ----- > > : > : From: "Shahzad Latif" <[EMAIL PROTECTED]> > > : > : To: <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > > : > : Sent: Saturday, August 10, 2002 14:52 > > : > : Subject: Re: [iText-questions] leading, tracking, kerning > > : > : > > : > : > > : > : > Hi: > > : > : > > > : > : > Just a correction. Leading is working great. My bad. > > : > : > > > : > : > Could someone suggest something for tracking, kerning, space > > between > > : > : > words > > : > : > issues in columntext. I would really appreciate that. > > : > : > > > : > : > Regards, > > : > : > > > : > : > Shahzad > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: Dice - The leading online job > board > > for high-tech professionals. Search and apply for tech jobs today! > > http://seeker.dice.com/seeker.epl?rel_code=31 > > _______________________________________________ > > iText-questions mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > > ------------------------------------------------------- > This sf.net email is sponsored by: Dice - The leading online job board > for high-tech professionals. Search and apply for tech jobs today! > http://seeker.dice.com/seeker.epl?rel_code=31 > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > able to > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.msn.com ------------------------------------------------------- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
