@@ -148,11 +148,6 @@ def _read(self):
148
148
while True :
149
149
byte = ord (self .file .read (1 )[0 ])
150
150
self ._dispatch (byte )
151
- # if self.state == _dvistate.inpage:
152
- # matplotlib.verbose.report(
153
- # 'Dvi._read: after %d at %f,%f' %
154
- # (byte, self.h, self.v),
155
- # 'debug-annoying')
156
151
if byte == 140 : # end of page
157
152
return True
158
153
if self .state == _dvistate .post_post : # end of file
@@ -282,9 +277,6 @@ def _put_char(self, char):
282
277
if font ._vf is None :
283
278
self .text .append ((self .h , self .v , font , char ,
284
279
font ._width_of (char )))
285
- # matplotlib.verbose.report(
286
- # 'Dvi._put_char: %d,%d %d' %(self.h, self.v, char),
287
- # 'debug-annoying')
288
280
else :
289
281
scale = font ._scale
290
282
for x , y , f , g , w in font ._vf [char ].text :
@@ -303,9 +295,6 @@ def _put_rule(self, a, b):
303
295
raise ValueError ("misplaced put_rule in dvi file" )
304
296
if a > 0 and b > 0 :
305
297
self .boxes .append ((self .h , self .v , a , b ))
306
- # matplotlib.verbose.report(
307
- # 'Dvi._put_rule: %d,%d %d,%d' % (self.h, self.v, a, b),
308
- # 'debug-annoying')
309
298
310
299
def _nop (self ):
311
300
pass
@@ -401,10 +390,6 @@ def _fnt_def(self, k, c, s, d, a, l, n):
401
390
raise FileNotFoundError ("missing font metrics file: %s" % fontname )
402
391
if c != 0 and tfm .checksum != 0 and c != tfm .checksum :
403
392
raise ValueError ('tfm checksum mismatch: %s' % n )
404
- # It seems that the assumption behind the following check is incorrect:
405
- #if d != tfm.design_size:
406
- # raise ValueError, 'tfm design size mismatch: %d in dvi, %d in %s'%\
407
- # (d, tfm.design_size, n)
408
393
409
394
vf = _vffile (fontname )
410
395
0 commit comments