[reportlab-users] valign middle and font size

Mathieu Ambrosy mathieu.ambrosy at geonov.fr
Tue Mar 20 06:37:29 EDT 2018


Fantastic!

Sorry, I wasn't aware about the leading thing.

It works perfectly. Thanks Robin!

Le 20/03/2018 à 11:31, Robin Becker a écrit :
> 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20180320/f6fc56a2/attachment.html>


More information about the reportlab-users mailing list