shithub: freetype+ttf2subf

Download patch

ref: d05d56fff069ed5d3e9c41bb9fb8508ed9e8f218
parent: f8f576d1d43ff9599dba0358b957d40890300b15
author: Werner Lemberg <[email protected]>
date: Sat Nov 26 13:13:09 EST 2011

[cff] Fix error code.

* src/cff/cffload.c (cff_font_load): Do it.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-11-26  Werner Lemberg  <[email protected]>
 
+	[cff] Fix error code.
+
+	* src/cff/cffload.c (cff_font_load): Do it.
+
+2011-11-26  Werner Lemberg  <[email protected]>
+
 	Add new error code FT_Err_Missing_Module.
 
 	Previously, FreeType misleadingly returned
--- a/src/cff/cffload.c
+++ b/src/cff/cffload.c
@@ -1576,7 +1576,7 @@
     if ( dict->charstrings_offset == 0 )
     {
       FT_ERROR(( "cff_font_load: no charstrings offset\n" ));
-      error = CFF_Err_Unknown_File_Format;
+      error = CFF_Err_Invalid_File_Format;
       goto Exit;
     }