@check_page<EOL><INDENT>def text(self, x, y, txt='<STR_LIT>'):<DEDENT>
txt = self.normalize_text(txt)<EOL>if (self.unifontsubset):<EOL><INDENT>txt2 = self._escape(UTF8ToUTF16BE(txt, False))<EOL>for uni in UTF8StringToArray(txt):<EOL><INDENT>self.current_font['<STR_LIT>'].append(uni)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>txt2 = self._escape(txt)<EOL><DEDENT>s=sprintf('<STR_LIT>',x*self.k,(self.h-y)*self.k, txt2)<EOL>if(self.underline and txt!='<STR_LIT>'):<EOL><INDENT>s+='<STR_LIT:U+0020>'+self._dounderline(x,y,txt)<EOL><DEDENT>if(self.color_flag):<EOL><INDENT>s='<STR_LIT>'+self.text_color+'<STR_LIT:U+0020>'+s+'<STR_LIT>'<EOL><DEDENT>self._out(s)<EOL>
Output a string