Fixed font setting bug
authorrgbecker
Tue, 16 May 2000 15:58:27 +0000
changeset 220 3b27693ac273
parent 219 d0ab76dc033f
child 221 3d71b66b14c6
Fixed font setting bug
reportlab/platypus/paragraph.py
--- a/reportlab/platypus/paragraph.py	Tue May 16 15:40:25 2000 +0000
+++ b/reportlab/platypus/paragraph.py	Tue May 16 15:58:27 2000 +0000
@@ -31,9 +31,12 @@
 #
 ###############################################################################
 #	$Log: paragraph.py,v $
+#	Revision 1.8  2000/05/16 15:58:27  rgbecker
+#	Fixed font setting bug
+#
 #	Revision 1.7  2000/05/16 14:28:55  rgbecker
 #	Fixes/Changes to get testplatypus to work with new framework
-#
+#	
 #	Revision 1.6  2000/05/15 13:36:11  rgbecker
 #	Splitting changes
 #	
@@ -52,7 +55,7 @@
 #	Revision 1.1  2000/04/14 13:21:52  rgbecker
 #	Removed from layout.py
 #	
-__version__=''' $Id: paragraph.py,v 1.7 2000/05/16 14:28:55 rgbecker Exp $ '''
+__version__=''' $Id: paragraph.py,v 1.8 2000/05/16 15:58:27 rgbecker Exp $ '''
 import string
 import types
 from reportlab.pdfbase.pdfmetrics import stringWidth
@@ -516,6 +519,8 @@
 				tx.XtraState.textColor=None
 				tx.XtraState.rise=0
 				tx.setLeading(style.leading)
+				f = lines[0].words[0]
+				tx._setFont(f.fontName, f.fontSize)
 				dpl( tx, offset, lines[0], noJustifyLast and nLines==1)
 
 				#now the middle of the paragraph, aligned with the left margin which is our origin.