[reportlab-users] valign middle and font size
Robin Becker
robin at reportlab.com
Tue Mar 20 06:31:46 EDT 2018
On 20/03/2018 09:47, Mathieu Ambrosy via reportlab-users wrote:
> Hi,
>
> I don't understand why "valign middle" don't work correctly when I set "FONTSIZE 14" in my table style ?
> It's like "valign" position is computed with default font size independently of my font size ?
>
> How to solve this ?
>
> Regards.
You need to take account of the leading change. With your example the leading is regarded as 12 not 14 so add
('LEADING',(0,0),(-1,-1),1.2*14)
to your table style.
--
Robin Becker
More information about the reportlab-users
mailing list