'Read the data from the file named *filename* and convert
TeX\'s internal units to units of *dpi* per inch.
*dpi* only sets the units and does not limit the resolution.
Use None to return TeX\'s internal units.'

def __init__(self, filename, dpi):

    matplotlib.verbose.report((u'Dvi:    ' + filename), u'debug')
    self.file = open(filename, u'rb')
    self.dpi = dpi
    self.fonts = {}
    self.state = _dvistate.pre
    self.baseline = self._get_baseline(filename)
