[reportlab-users] TrueType fonts in Paragraphs

Henning von Bargen reportlab-users@reportlab.com
Wed, 28 May 2003 12:23:58 +0200


The Paragraph class can handle HTML font tags like <font face="Helvetica">.

However, it is not able to handle 
(a) multiple values for the face attribute, like <font
face="Helvetica;sans-serif">
	It seems to take the whole string as one font name instead of
	trying Helvetica first, then sans-serif.
(b) TrueType fonts like <font face="Arial">.
	I know reportlab can handle TrueType fonts somehow.
	Is there anything special to do to TTFs work in the font tag?

BTW Tag handling seems to work only for lowercase tags like <font>, but not
<FONT>?
Would it be possible to make it work in either all uppercase or all
lowercase
or would this break existing code?

Henning