That's not a problem, just an option. Let's analyze the options:

1 - leading space between the top padding and the baseline (as it's
now). Pros, all the chars will fit. Cons, space between the ascender and
the top padding for most of the chars.

2 - ascender space between the top padding and the baseline. Pros, looks
better for capitals. Cons, lower case will still have space and some
characters will be clipped.

3 - lower case height between the top padding and the baseline. Pros,
looks better for lower case. Cons, all the characters except lower case
will be clipped.

4 - space based on bbox of characters in the line. Pros, no character is
clipped and space is the minimum. Cons, bbox analysis on each char,
baseline may be different even with same font and size, iText doesn't
gather the bbox information.

Option 2 may be possible, I'll have to think about it.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Christian Lauer
> Sent: Tuesday, September 21, 2004 7:20 AM
> To: iText Mailing List
> Subject: [iText-questions] Vertical alignment in PdfPCells
> 
> Hi Paulo,
> 
> an UJAC user had a interesting question about vertical alignment in
> PdfPCells. The problem he discovered is that you can't really 
> perform a
> top or middle alignment, not even with fixed leading set to zero and
> multiplied leading set to 1.0. There will always be a little 
> extra space
> between the top of the cell and the contents.
> 
> And the workaround by manipulating the paddingTop attribute 
> is no ideal
> solution too because it depends on the font size that's used. 
> 
> Is there a real solution for that problem?
> 
> I've attached an test programm, which produces the problem.
> 
> Best regards,
> Christian
> 
> -- 
> Christian Lauer <[EMAIL PROTECTED]>
> 


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to