shithub: freetype+ttf2subf

Download patch

ref: 3c7c5da3bb3b4ac18e6af261c1712fb0f6d62799
parent: 05f0ad098fc1486410426eca2c32bd784b021ef9
author: Werner Lemberg <[email protected]>
date: Thu Oct 19 11:56:22 EDT 2000

added development header files to CONFIG_H in the makefiles

increased T1_MAX_CHARSTRINGS_OPERANDS (again) to 256 -- one glyph of the
Chinese MingTiEG-Medium needs it that large

git/fs: mount .git/fs: mount/attach disallowed
--- a/builds/cygwin/devel/freetype/config/ftoption.h
+++ b/builds/cygwin/devel/freetype/config/ftoption.h
@@ -357,7 +357,9 @@
   /* T1_MAX_CHARSTRING_OPERANDS is the charstring stack's capacity.  A     */
   /* minimum of 16 is required.                                            */
   /*                                                                       */
-#define T1_MAX_CHARSTRINGS_OPERANDS  64
+  /* The Chinese font MingTiEG-Medium (CNS 11643 character set) needs 256. */
+  /*                                                                       */
+#define T1_MAX_CHARSTRINGS_OPERANDS  256
 
 
   /*************************************************************************/
--- a/builds/freetype.mk
+++ b/builds/freetype.mk
@@ -154,7 +154,8 @@
 #
 PUBLIC_H   := $(wildcard $(PUBLIC_)*.h)
 BASE_H     := $(wildcard $(INTERNAL_)*.h)
-CONFIG_H   := $(wildcard $(CONFIG_)*.h)
+CONFIG_H   := $(wildcard $(CONFIG_)*.h) \
+              $(wildcard $(BUILD)$(SEP)freetype$(SEP)config$(SEP)*.h)
 CACHE_H    := $(wildcard $(CACHE_)*.h)
 
 FREETYPE_H := $(PUBLIC_H) $(BASE_H) $(CONFIG_H) $(CACHE_H)
--- a/builds/unix/devel/freetype/config/ftoption.h
+++ b/builds/unix/devel/freetype/config/ftoption.h
@@ -357,7 +357,9 @@
   /* T1_MAX_CHARSTRING_OPERANDS is the charstring stack's capacity.  A     */
   /* minimum of 16 is required.                                            */
   /*                                                                       */
-#define T1_MAX_CHARSTRINGS_OPERANDS  64
+  /* The Chinese font MingTiEG-Medium (CNS 11643 character set) needs 256. */
+  /*                                                                       */
+#define T1_MAX_CHARSTRINGS_OPERANDS  256
 
 
   /*************************************************************************/
--- a/builds/unix/unixddef.mk
+++ b/builds/unix/unixddef.mk
@@ -22,7 +22,8 @@
 DELETE   := rm -f
 SEP      := /
 HOSTSEP  := $(SEP)
-BUILD    := $(TOP)/builds/unix/devel # we use a special devel ftoption.h
+# we use a special devel ftoption.h
+BUILD    := $(TOP)/builds/unix/devel
 # do not set the platform to `unix', or libtool will trick you
 PLATFORM := unixdev
 
--- a/builds/win32/devel/freetype/config/ftoption.h
+++ b/builds/win32/devel/freetype/config/ftoption.h
@@ -357,6 +357,8 @@
   /* T1_MAX_CHARSTRING_OPERANDS is the charstring stack's capacity.  A     */
   /* minimum of 16 is required.                                            */
   /*                                                                       */
+  /* The Chinese font MingTiEG-Medium (CNS 11643 character set) needs 256. */
+  /*                                                                       */
 #define T1_MAX_CHARSTRINGS_OPERANDS  64
 
 
--- a/builds/win32/w32-dev.mk
+++ b/builds/win32/w32-dev.mk
@@ -23,7 +23,9 @@
   TOP := .
 endif
 
-SEP := /
+SEP   := /
+BUILD := $(TOP)/builds/win32/devel
+
 include $(TOP)/builds/win32/win32-def.mk
 include $(TOP)/builds/compiler/gcc-dev.mk
 
--- a/include/freetype/config/ftoption.h
+++ b/include/freetype/config/ftoption.h
@@ -357,7 +357,9 @@
   /* T1_MAX_CHARSTRING_OPERANDS is the charstring stack's capacity.  A     */
   /* minimum of 16 is required.                                            */
   /*                                                                       */
-#define T1_MAX_CHARSTRINGS_OPERANDS  64
+  /* The Chinese font MingTiEG-Medium (CNS 11643 character set) needs 256. */
+  /*                                                                       */
+#define T1_MAX_CHARSTRINGS_OPERANDS  256
 
 
   /*************************************************************************/
--- a/include/freetype/internal/psaux.h
+++ b/include/freetype/internal/psaux.h
@@ -520,9 +520,6 @@
 
 #if 0
 
-#define T1_MAX_CHARSTRINGS_OPERANDS  64
-#define T1_MAX_SUBRS_CALLS           16
-
   /*************************************************************************/
   /*                                                                       */
   /* T1_MAX_SUBRS_CALLS details the maximum number of nested sub-routine   */