shithub: freetype+ttf2subf

Download patch

ref: 33db39e2923516e52975a13ccfd0cd129d3507ab
parent: 88ab638e0fd4cdc5cdb40d5dc0897ec064ce9719
author: Werner Lemberg <[email protected]>
date: Fri Jun 8 02:30:29 EDT 2007

* src/sfnt/sfobjs.c (sfnt_load_face): Undo change from 2007-04-28.
Fonts without a cmap must be handled correctly by FreeType (anything
else would be a bug).


* src/psaux/t1decode.c (t1_decoder_parse_charstrings)
[FT_DEBUG_LEVEL_TRACE]: Improve tracing message.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2007-06-08  Werner Lemberg  <[email protected]>
+
+	* src/sfnt/sfobjs.c (sfnt_load_face): Undo change from 2007-04-28. 
+	Fonts without a cmap must be handled correctly by FreeType (anything
+	else would be a bug).
+
+
+	* src/psaux/t1decode.c (t1_decoder_parse_charstrings)
+	[FT_DEBUG_LEVEL_TRACE]: Improve tracing message.
+
 2007-06-07  Werner Lemberg  <[email protected]>
 
 	* src/sfnt/ttsbit0.c (tt_sbit_decoder_init,
--- a/src/psaux/t1decode.c
+++ b/src/psaux/t1decode.c
@@ -4,7 +4,7 @@
 /*                                                                         */
 /*    PostScript Type 1 decoding routines (body).                          */
 /*                                                                         */
-/*  Copyright 2000-2001, 2002, 2003, 2004, 2005, 2006 by                   */
+/*  Copyright 2000-2001, 2002, 2003, 2004, 2005, 2006, 2007 by             */
 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
 /*                                                                         */
 /*  This file is part of the FreeType project, and may only be used,       */
@@ -951,8 +951,9 @@
 
         default:
           if ( top - decoder->stack != num_args )
-            FT_TRACE0(( "\nMore operands on the stack than expected "
-                        "(have %d, expected %d)\n",
+            FT_TRACE0(( "t1_decoder_parse_charstrings: "
+                        "too much operands on the stack "
+                        "(seen %d, expected %d)\n",
                         top - decoder->stack, num_args ));
             break;
         }
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -575,10 +575,7 @@
     /* the following tables are often not present in embedded TrueType */
     /* fonts within PDF documents, so don't check for them.            */
     LOAD_( maxp );
-
     LOAD_( cmap );
-    if ( error )
-      goto Exit;
 
     /* the following tables are optional in PCL fonts -- */
     /* don't check for errors                            */