shithub: freetype+ttf2subf

Download patch

ref: 730b7b1f79c447f6812fe95c8b2f9ec684752d81
parent: a76108ba0babb5ebb2a5d5929bc8422db566bdcd
author: Werner Lemberg <[email protected]>
date: Sun Apr 3 16:44:43 EDT 2005

* src/type1/t1parse.c (T1_New_Parser): Relax the check for a valid
first line in the font.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2005-04-03  Werner Lemberg  <[email protected]>
 
+	* src/type1/t1parse.c (T1_New_Parser): Relax the check for a valid
+	first line in the font.
+
+2005-04-03  Werner Lemberg  <[email protected]>
+
 	* docs/CHANGES, include/freetype/freetype.h: Improve documentation
 	of FT_Set_Pixel_Sizes and FT_Set_Char_Size.
 
--- a/src/type1/t1parse.c
+++ b/src/type1/t1parse.c
@@ -151,7 +151,7 @@
     parser->single_block = 0;
 
     /* check the header format */
-    error = check_type1_format( stream, "%!PS-AdobeFont-1", 16 );
+    error = check_type1_format( stream, "%!PS-AdobeFont", 14 );
     if ( error )
     {
       if ( error != T1_Err_Unknown_File_Format )