def render_char(self, matrix, font, fontsize, scaling, rise, cid): try: text = font.to_unichr(cid) assert isinstance(text, unicode), text except PDFUnicodeNotDefined: text = self.handle_undefined_char(font, cid) textwidth = font.char_width(cid) textdisp = font.char_disp(cid) item = LTChar(matrix, font, fontsize, scaling, rise, text, textwidth, textdisp) self.cur_item.add(item) return item.adv
def render_char(self, matrix, font, fontsize, scaling, rise, cid): item = LTChar(matrix, font, fontsize, scaling, rise, cid) self.cur_item.add(item) return item.adv