(self, matrix, font, fontsize, scaling, rise, cid)
| 93 | return |
| 94 | |
| 95 | def render_char(self, matrix, font, fontsize, scaling, rise, cid): |
| 96 | try: |
| 97 | text = font.to_unichr(cid) |
| 98 | assert isinstance(text, unicode), text |
| 99 | except PDFUnicodeNotDefined: |
| 100 | text = self.handle_undefined_char(font, cid) |
| 101 | textwidth = font.char_width(cid) |
| 102 | textdisp = font.char_disp(cid) |
| 103 | item = LTChar(matrix, font, fontsize, scaling, rise, text, textwidth, textdisp) |
| 104 | self.cur_item.add(item) |
| 105 | return item.adv |
| 106 | |
| 107 | def handle_undefined_char(self, font, cid): |
| 108 | if self.debug: |
nothing calls this directly
no test coverage detected