[reportlab-users] changed font size in table
robin at reportlab.com
Wed Mar 2 06:11:29 EST 2005
Christoph Zwerschke wrote:
> Tom, I think the problem is that you decreased the FONTSIZE, but not the
> LEADING. So you get 3 points default bottom padding + 12 points default
> text height (leading) which is already at the top of the 15 point cell.
> Try again using a LEADING of 8, this will look better.
> There will be still a small problem because a LEADING of 8 will be too
> small for a FONTSIZE of 8. So I recommend setting the LEADING to 11 and
> the TOPADDING and BOTTOMPADDING to 2. This should look nice.
> The VALIGN has no effect here because in your example the LEADING and
> the PADDING already sum up to the full row height, so there is no room
> for vertical adjustment anyway.
> Please also note that Reportlab had a problem with VALIGN=MIDDLE which
> has been fixed in version 1.20 only.
..... I think Christoph has the right answer. We have had several patches
related to getting this right. One point which people seem to disagree on is
where the centre point should lie. So for one line of text should it be the
middle of the leaded line that's centred or the baseline of the single line?
More information about the reportlab-users