[reportlab-users] Paragraph height wrong when using xml font tags
Robin Becker
robin at reportlab.com
Tue Jun 23 07:03:46 EDT 2009
Volker Haas wrote:
> Hi all.
>
> The height of a paragraph flowable is not calculated correctly when
> using xml font tags to change the font size. This only happens if *all*
> of the text in the paragraph flowable is inside a font tag which
> changes the size.
>
> i.e.
> * Paragraph('<font size=30>text</font>', someStyle) has an *incorrect*
> height
> adding some "plain" text fixes this:
> * Paragraph('<font size=30>text</font> X', someStyle) has the correct
> height
OK I'll have a look at this soon. I think this is the result of having a fast
path for paragraphs with only a single style; probably there's some difference
in the height calculation.
--
Robin Becker
More information about the reportlab-users
mailing list