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

Method _init_packet

lib/matplotlib/dviread.py:921–930  ·  view source on GitHub ↗
(self, pl)

Source from the content-addressed store, hash-verified

919 raise ValueError(f"Unknown vf opcode {byte}")
920
921 def _init_packet(self, pl):
922 if self.state != _dvistate.outer:
923 raise ValueError("Misplaced packet in vf file")
924 self.h = self.v = self.w = self.x = self.y = self.z = 0
925 self.stack = []
926 self.text = []
927 self.boxes = []
928 self.f = self._first_font
929 self._missing_font = None
930 return self.file.tell() + pl
931
932 def _finalize_packet(self, packet_char, packet_width):
933 if not self._missing_font: # Otherwise we don't have full glyph definition.

Callers 1

_readMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected