(self, subset, fonttype)
| 2283 | self.draw_path(boxgc, path, mytrans, gc._rgb) |
| 2284 | |
| 2285 | def _encode_glyphs(self, subset, fonttype): |
| 2286 | if fonttype in (1, 3): |
| 2287 | return bytes(subset) |
| 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] |
no test coverage detected