[91006] trunk/dports/print/freetype
ryandesign at macports.org
ryandesign at macports.org
Wed Mar 21 05:08:44 PDT 2012
Revision: 91006
https://trac.macports.org/changeset/91006
Author: ryandesign at macports.org
Date: 2012-03-21 05:08:44 -0700 (Wed, 21 Mar 2012)
Log Message:
-----------
freetype: add upstream patch to fix 'Font Renderer Plugin ( FreeType ) return code = -1' in ghostscript; see #33711
Modified Paths:
--------------
trunk/dports/print/freetype/Portfile
Added Paths:
-----------
trunk/dports/print/freetype/files/patch-src_type1_t1load.c.diff
Modified: trunk/dports/print/freetype/Portfile
===================================================================
--- trunk/dports/print/freetype/Portfile 2012-03-21 11:57:37 UTC (rev 91005)
+++ trunk/dports/print/freetype/Portfile 2012-03-21 12:08:44 UTC (rev 91006)
@@ -7,6 +7,7 @@
name freetype
version 2.4.9
+revision 1
categories print graphics
maintainers ryandesign
license {FreeType GPL-2}
@@ -46,6 +47,7 @@
patchfiles \
patch-detect.mk.diff \
patch-src_base_ftrfork.c.diff \
+ patch-src_type1_t1load.c.diff \
patch-modules.cfg.diff
depends_lib port:zlib \
Added: trunk/dports/print/freetype/files/patch-src_type1_t1load.c.diff
===================================================================
--- trunk/dports/print/freetype/files/patch-src_type1_t1load.c.diff (rev 0)
+++ trunk/dports/print/freetype/files/patch-src_type1_t1load.c.diff 2012-03-21 12:08:44 UTC (rev 91006)
@@ -0,0 +1,89 @@
+https://savannah.nongnu.org/bugs/?func=detailitem&item_id=35833
+--- src/type1/t1load.c.orig
++++ src/type1/t1load.c
+@@ -71,6 +71,13 @@
+ #include "t1errors.h"
+
+
++#ifdef FT_CONFIG_OPTION_INCREMENTAL
++#define IS_INCREMENTAL ( face->root.internal->incremental_interface != 0 )
++#else
++#define IS_INCREMENTAL 0
++#endif
++
++
+ /*************************************************************************/
+ /* */
+ /* The macro FT_COMPONENT is used in trace mode. It is an implicit */
+@@ -1030,7 +1037,8 @@
+ static int
+ read_binary_data( T1_Parser parser,
+ FT_Long* size,
+- FT_Byte** base )
++ FT_Byte** base,
++ FT_Bool incremental )
+ {
+ FT_Byte* cur;
+ FT_Byte* limit = parser->root.limit;
+@@ -1065,8 +1073,12 @@
+ }
+ }
+
+- FT_ERROR(( "read_binary_data: invalid size field\n" ));
+- parser->root.error = T1_Err_Invalid_File_Format;
++ if( !incremental )
++ {
++ FT_ERROR(( "read_binary_data: invalid size field\n" ));
++ parser->root.error = T1_Err_Invalid_File_Format;
++ }
++
+ return 0;
+ }
+
+@@ -1396,7 +1408,7 @@
+
+ idx = T1_ToInt( parser );
+
+- if ( !read_binary_data( parser, &size, &base ) )
++ if ( !read_binary_data( parser, &size, &base, IS_INCREMENTAL ) )
+ return;
+
+ /* The binary string is followed by one token, e.g. `NP' */
+@@ -1582,7 +1594,7 @@
+ cur++; /* skip `/' */
+ len = parser->root.cursor - cur;
+
+- if ( !read_binary_data( parser, &size, &base ) )
++ if ( !read_binary_data( parser, &size, &base, IS_INCREMENTAL ) )
+ return;
+
+ /* for some non-standard fonts like `Optima' which provides */
+@@ -1871,7 +1883,7 @@
+
+
+ parser->root.cursor = start_binary;
+- if ( !read_binary_data( parser, &s, &b ) )
++ if ( !read_binary_data( parser, &s, &b, IS_INCREMENTAL ) )
+ return T1_Err_Invalid_File_Format;
+ have_integer = 0;
+ }
+@@ -1884,7 +1896,7 @@
+
+
+ parser->root.cursor = start_binary;
+- if ( !read_binary_data( parser, &s, &b ) )
++ if ( !read_binary_data( parser, &s, &b, IS_INCREMENTAL ) )
+ return T1_Err_Invalid_File_Format;
+ have_integer = 0;
+ }
+@@ -2160,9 +2172,7 @@
+ type1->subrs_len = loader.subrs.lengths;
+ }
+
+-#ifdef FT_CONFIG_OPTION_INCREMENTAL
+- if ( !face->root.internal->incremental_interface )
+-#endif
++ if ( !IS_INCREMENTAL )
+ if ( !loader.charstrings.init )
+ {
+ FT_ERROR(( "T1_Open_Face: no `/CharStrings' array in face\n" ));
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120321/ff484c2d/attachment.html>
More information about the macports-changes
mailing list