Re: valign middle and font size

Robin Becker <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.