[reportlab-users] changed font size in table

Timothy Smith timothy at open-networks.net
Mon Feb 28 19:06:48 EST 2005


Tom Brown wrote:

>I changed the font size in my tables to 8. This causes the text in the cells 
>to be misaligned vertically. Why isn't the text centered in the cells?
>
>Here is my code to create the tables:
>
>  def getTable(self, data):
>    style = [
>      ('GRID', (0,0), (-1,-1), 0.5, colors.grey),
>      ('FONTSIZE', (0,0), (-1, -1), 8),
>      ('VALIGN', (0,0), (-1, -1), 'BOTTOM'),
>    ]
>    rowHeights = len(data) * [15]
>    return Table(data, rowHeights=rowHeights, style=style)
>
>Thanks,
>Tom
>_______________________________________________
>reportlab-users mailing list
>reportlab-users at reportlab.com
>http://two.pairlist.net/mailman/listinfo/reportlab-users
>
>
>  
>
because you have 'VALIGN' set to 'BOTTOM'


More information about the reportlab-users mailing list