Author: alexcher
Date: 2008-03-16 15:25:13 -0700 (Sun, 16 Mar 2008)
New Revision: 8601

Modified:
   trunk/gs/lib/gs_ttf.ps
Log:
Handle TT fonts that have short post table with less than 256 glyphs.
Pad the generated Encoding vector with /.notdef glyphs.
Bug 689515, customer 700.

DIFFERENCES:
None


Modified: trunk/gs/lib/gs_ttf.ps
===================================================================
--- trunk/gs/lib/gs_ttf.ps	2008-03-15 23:59:48 UTC (rev 8600)
+++ trunk/gs/lib/gs_ttf.ps	2008-03-16 22:25:13 UTC (rev 8601)
@@ -1502,7 +1502,13 @@
   /Encoding [
       have_post {
         cmapa dup length 256 gt { 0 256 getinterval } if
-        { glyphencoding exch get } forall
+        { glyphencoding dup length
+          2 index le {
+            pop pop /.notdef
+          } {
+            exch get
+          } ifelse
+        } forall
       } {
         glyphencoding  dup length 256 gt { 0 256 getinterval } if
         aload pop

_______________________________________________
gs-cvs mailing list
gs-cvs@ghostscript.com
http://www.ghostscript.com/mailman/listinfo/gs-cvs
