#NEWLINE# def put_text( self , text , fontname , fontsize ) : #NEWLINE# #INDENT# font = ( fontname , fontsize ) #NEWLINE# if ( font != self . _font ) : #NEWLINE# #INDENT# if ( self . _font is not None ) : #NEWLINE# #INDENT# self . write ( '</span>' ) #NEWLINE# #UNINDENT# self . write ( ( '<span style="font-family: %s; font-size:%dpx">' % ( fontname , ( ( fontsize * self . scale ) * self . fontscale ) ) ) ) #NEWLINE# self . _font = font #NEWLINE# #UNINDENT# self . write_text ( text ) #NEWLINE# return