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

Method _set_glyphs

lib/matplotlib/dviread.py:601–610  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

599
600 @_dispatch(253, args=())
601 def _set_glyphs(self):
602 w = self._read_arg(4, signed=False)
603 k = self._read_arg(2, signed=False)
604 xy = [self._read_arg(4, signed=True) for _ in range(2 * k)]
605 g = [self._read_arg(2, signed=False) for _ in range(k)]
606 font = self.fonts[self.f]
607 for i in range(k):
608 self.text.append(Text(self.h + xy[2 * i], self.v + xy[2 * i + 1],
609 font, g[i], font._width_of(g[i])))
610 self.h += w
611
612 @_dispatch(254, args=())
613 def _set_text_and_glyphs(self):

Callers

nothing calls this directly

Calls 3

_read_argMethod · 0.95
_width_ofMethod · 0.80
TextClass · 0.70

Tested by

no test coverage detected