shithub: freetype+ttf2subf

Download patch

ref: d594202ebb9473885a07086ed4a8185ebcf59fa1
parent: 84fa62e0d7a3a72084d7cbf79454a8b335de712a
author: suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
date: Sat Jul 10 20:31:17 EDT 2010

Fix another case reported in Savannah bug #30373.
Permit a face for Type1, Type42 and CFF without charmap,
patch by Tor Andersson.

* src/type1/t1objs.c (T1_Face_Init): Reset the error if it
is FT_Err_No_Unicode_Glyph_Name.
* src/type42/t42objs.c (T42_Face_Init): Ditto.
* src/cff/cffobjs.c (cff_face_init): Ditto.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2010-07-10  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+
+	Fix another case reported in Savannah bug #30373.
+	Permit a face for Type1, Type42 and CFF without charmap,
+	patch by Tor Andersson.
+
+	* src/type1/t1objs.c (T1_Face_Init): Reset the error if it
+	is FT_Err_No_Unicode_Glyph_Name.
+	* src/type42/t42objs.c (T42_Face_Init): Ditto.
+	* src/cff/cffobjs.c (cff_face_init): Ditto.
+
 2010-07-09  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
 	Use defined macros to set {platform,encoding}_id.
--- a/src/cff/cffobjs.c
+++ b/src/cff/cffobjs.c
@@ -902,6 +902,7 @@
                              &cmaprec, NULL );
         if ( error && FT_Err_No_Unicode_Glyph_Name != error )
           goto Exit;
+        error = FT_Err_Ok;
 
         /* if no Unicode charmap was previously selected, select this one */
         if ( cffface->charmap == NULL && nn != (FT_UInt)cffface->num_charmaps )
--- a/src/type1/t1objs.c
+++ b/src/type1/t1objs.c
@@ -501,6 +501,7 @@
         error = FT_CMap_New( cmap_classes->unicode, NULL, &charmap, NULL );
         if ( error && FT_Err_No_Unicode_Glyph_Name != error )
           goto Exit;
+        error = FT_Err_Ok;
 
         /* now, generate an Adobe Standard encoding when appropriate */
         charmap.platform_id = TT_PLATFORM_ADOBE;
--- a/src/type42/t42objs.c
+++ b/src/type42/t42objs.c
@@ -338,6 +338,7 @@
         error = FT_CMap_New( cmap_classes->unicode, NULL, &charmap, NULL );
         if ( error && FT_Err_No_Unicode_Glyph_Name != error )
           goto Exit;
+        error = FT_Err_Ok;
 
         /* now, generate an Adobe Standard encoding when appropriate */
         charmap.platform_id = TT_PLATFORM_ADOBE;
--