[gs-cvs] gs/lib
Ray Johnston
ray at casper.ghostscript.com
Sun Mar 3 22:32:37 PST 2002
Update of /cvs/ghostscript/gs/lib
In directory casper:/tmp/cvs-serv14864/lib
Modified Files:
gs_ttf.ps
Log Message:
Fix: Ignore an invalid 'post' format 2.0 table in TrueType fonts.
Fixes SourceForge bug #523973 for Artifex customer #990.
Index: gs_ttf.ps
===================================================================
RCS file: /cvs/ghostscript/gs/lib/gs_ttf.ps,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- gs_ttf.ps 21 Feb 2002 21:49:28 -0000 1.11
+++ gs_ttf.ps 4 Mar 2002 06:32:35 -0000 1.12
@@ -353,6 +353,10 @@
pop MacGlyphEncoding
}
16#00020000 { % Detailed map, required by Microsoft fonts.
+ dup length 36 lt {
+ DEBUG { (post format 2.0 invalid.) = flush } if
+ pop [ ]
+ } {
/postglyphs exch def
postglyphs 32 getu16 /numglyphs exch def
/glyphnames numglyphs 2 mul 34 add def
@@ -379,6 +383,8 @@
} ifelse
} ifelse
} for ]
+ }
+ ifelse
} bind
16#00030000 { % No map.
pop [ ]
More information about the gs-cvs
mailing list