#NEWLINE# def place_text( self , color , text , x , y , size ) : #NEWLINE# #INDENT# color = self . text_colors . get ( color ) #NEWLINE# if ( color is not None ) : #NEWLINE# #INDENT# self . write ( ( '<span style="position:absolute; color:%s; left:%dpx; top:%dpx; font-size:%dpx;">' % ( color , ( x * self . scale ) , ( ( self . _yoffset - y ) * self . scale ) , ( ( size * self . scale ) * self . fontscale ) ) ) ) #NEWLINE# self . write_text ( text ) #NEWLINE# self . write ( '</span>\n' ) #NEWLINE# #UNINDENT# return