(self, s, fonttype)
| 2288 | return b''.join(glyph.to_bytes(2, 'big') for glyph in subset) |
| 2289 | |
| 2290 | def encode_string(self, s, fonttype): |
| 2291 | encoding = {1: 'cp1252', 3: 'latin-1', 42: 'utf-16be'}[fonttype] |
| 2292 | return s.encode(encoding, 'replace') |
| 2293 | |
| 2294 | def draw_text(self, gc, x, y, s, prop, angle, ismath=False, mtext=None): |
| 2295 | # docstring inherited |