MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _encode_glyphs

Method _encode_glyphs

lib/matplotlib/backends/backend_pdf.py:2285–2288  ·  view source on GitHub ↗
(self, subset, fonttype)

Source from the content-addressed store, hash-verified

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]

Callers 2

draw_mathtextMethod · 0.95

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected