From e6bed1634285592acd2e305756137ef7f683e03f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rg=20Lehmann?= Date: Fri, 25 Jun 2004 07:44:18 +0000 Subject: [PATCH] add comment git-svn-id: https://pyx.svn.sourceforge.net/svnroot/pyx/trunk/pyx@1773 069f4177-920e-0410-937b-c2a4a81bcd90 --- pyx/dvifile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyx/dvifile.py b/pyx/dvifile.py index 57523b7f..3999d77b 100644 --- a/pyx/dvifile.py +++ b/pyx/dvifile.py @@ -1299,6 +1299,8 @@ class dvifile: elif cmd >= _DVI_FNTNUMMIN and cmd <= _DVI_FNTNUMMAX: self.usefont(cmd - _DVI_FNTNUMMIN) elif cmd >= _DVI_FNT1234 and cmd < _DVI_FNT1234 + 4: + # note that according to the DVI docs, for four byte font numbers, + # the font number is signed. Don't ask why! self.usefont(afile.readint(cmd - _DVI_FNT1234 + 1, cmd == _DVI_FNT1234 + 3)) elif cmd >= _DVI_SPECIAL1234 and cmd < _DVI_SPECIAL1234 + 4: self.special(afile.read(afile.readint(cmd - _DVI_SPECIAL1234 + 1))) -- 2.11.4.GIT