shithub: freetype+ttf2subf

Download patch

ref: dbe5622335e5393660959109f11e29e44f64ecb0
parent: 3445e4f942cd85b673195937bb19a705242b4e55
author: Ken Sharp <[email protected]>
date: Tue Jan 5 04:43:01 EST 2010

Make Type 1 `seac' operator work with incremental interface.

* src/psaux/t1decode.c (t1operator_seac): Don't check `glyph_names'
if incremental interface is used.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-01-05  Ken Sharp  <[email protected]>
+
+	Make Type 1 `seac' operator work with incremental interface.
+
+	* src/psaux/t1decode.c (t1operator_seac): Don't check `glyph_names'
+	if incremental interface is used.
+
 2010-01-04  Ken Sharp  <[email protected]>
 
 	Make incremental interface work with TrueType fonts.
@@ -7718,7 +7725,7 @@
 
 ----------------------------------------------------------------------------
 
-Copyright 2006, 2007, 2008, 2009 by
+Copyright 2006, 2007, 2008, 2009, 2010 by
 David Turner, Robert Wilhelm, and Werner Lemberg.
 
 This file is part of the FreeType project, and may only be used, modified,
--- a/src/psaux/t1decode.c
+++ b/src/psaux/t1decode.c
@@ -4,7 +4,8 @@
 /*                                                                         */
 /*    PostScript Type 1 decoding routines (body).                          */
 /*                                                                         */
-/*  Copyright 2000-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 by */
+/*  Copyright 2000-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009    */
+/*            2010 by                                                      */
 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
 /*                                                                         */
 /*  This file is part of the FreeType project, and may only be used,       */
@@ -211,7 +212,8 @@
 
     /* `glyph_names' is set to 0 for CID fonts which do not */
     /* include an encoding.  How can we deal with these?    */
-    if ( decoder->glyph_names == 0 )
+    if ( decoder->glyph_names == 0                   &&
+         !face->root.internal->incremental_interface )
     {
       FT_ERROR(( "t1operator_seac:"
                  " glyph names table not available in this font\n" ));