From d043be93227e7b3717eeebb6659a83dec8971a65 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Wobst?= Date: Wed, 6 Jan 2010 21:04:34 +0000 Subject: [PATCH] fix for commented out UniqueID git-svn-id: https://pyx.svn.sourceforge.net/svnroot/pyx/trunk/pyx@3017 069f4177-920e-0410-937b-c2a4a81bcd90 --- CHANGES | 1 + pyx/font/t1file.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index a8df643b..8beb4165 100644 --- a/CHANGES +++ b/CHANGES @@ -107,6 +107,7 @@ TODO: - interface for basic TeX-less text output - new PS and PDF writer options: strip_fonts, text_as_path, mesh_as_bitmap, mesh_as_bitmap_resolution (TODO: documentation) + - fix for commented out UniqueID - graph modules: - graphxyz: fix position of z4 axis - fallbackrange for axes with vanishing range diff --git a/pyx/font/t1file.py b/pyx/font/t1file.py index 7d87ff69..5350a650 100644 --- a/pyx/font/t1file.py +++ b/pyx/font/t1file.py @@ -967,7 +967,8 @@ class T1file: return self._eexecencode(self.getdata2()) newlinepattern = re.compile("\s*[\r\n]\s*") - uniqueidpattern = re.compile("/UniqueID\s+\d+\s+def\s+") + uniqueidpattern = re.compile("%?/UniqueID\s+\d+\s+def\s+") + # when UniqueID is commented out (as in modern latin), prepare to remove the comment character as well def getstrippedfont(self, glyphs, charcodes): """create a T1file instance containing only certain glyphs -- 2.11.4.GIT