summarylogtreecommitdiffstats
path: root/0004-Enable-old-engines-but-keep-adobe-as-default.patch
diff options
context:
space:
mode:
Diffstat (limited to '0004-Enable-old-engines-but-keep-adobe-as-default.patch')
-rw-r--r--0004-Enable-old-engines-but-keep-adobe-as-default.patch88
1 files changed, 88 insertions, 0 deletions
diff --git a/0004-Enable-old-engines-but-keep-adobe-as-default.patch b/0004-Enable-old-engines-but-keep-adobe-as-default.patch
new file mode 100644
index 000000000000..09cd1f949352
--- /dev/null
+++ b/0004-Enable-old-engines-but-keep-adobe-as-default.patch
@@ -0,0 +1,88 @@
+From 026fd5f70d81f719773247d4d0086c6023c23436 Mon Sep 17 00:00:00 2001
+Message-Id: <026fd5f70d81f719773247d4d0086c6023c23436.1513462508.git.jan.steffens@gmail.com>
+In-Reply-To: <c7a6a2312313a971089fb592deb8c476be4dca0f.1513462508.git.jan.steffens@gmail.com>
+References: <c7a6a2312313a971089fb592deb8c476be4dca0f.1513462508.git.jan.steffens@gmail.com>
+From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
+Date: Sat, 16 Dec 2017 23:08:02 +0100
+Subject: [PATCH 4/4] Enable old engines, but keep adobe as default
+
+---
+ include/freetype/config/ftoption.h | 4 ++--
+ src/cff/cffobjs.c | 4 ----
+ src/cid/cidobjs.c | 4 ----
+ src/type1/t1objs.c | 4 ----
+ 4 files changed, 2 insertions(+), 14 deletions(-)
+
+diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h
+index 832c9c3cd200f91a..dc3417d73e99d987 100644
+--- a/include/freetype/config/ftoption.h
++++ b/include/freetype/config/ftoption.h
+@@ -775,7 +775,7 @@ FT_BEGIN_HEADER
+ /* switch between the two engines using the `hinting-engine' property of */
+ /* the type1 driver module. */
+ /* */
+-/* #define T1_CONFIG_OPTION_OLD_ENGINE */
++#define T1_CONFIG_OPTION_OLD_ENGINE
+
+
+ /*************************************************************************/
+@@ -818,7 +818,7 @@ FT_BEGIN_HEADER
+ /* switch between the two engines using the `hinting-engine' property of */
+ /* the cff driver module. */
+ /* */
+-/* #define CFF_CONFIG_OPTION_OLD_ENGINE */
++#define CFF_CONFIG_OPTION_OLD_ENGINE
+
+
+ /*************************************************************************/
+diff --git a/src/cff/cffobjs.c b/src/cff/cffobjs.c
+index d4b6e5941ac44b58..c520f97f667f5d9a 100644
+--- a/src/cff/cffobjs.c
++++ b/src/cff/cffobjs.c
+@@ -1163,11 +1163,7 @@
+
+
+ /* set default property values, cf. `ftcffdrv.h' */
+-#ifdef CFF_CONFIG_OPTION_OLD_ENGINE
+- driver->hinting_engine = FT_HINTING_FREETYPE;
+-#else
+ driver->hinting_engine = FT_HINTING_ADOBE;
+-#endif
+
+ driver->no_stem_darkening = TRUE;
+
+diff --git a/src/cid/cidobjs.c b/src/cid/cidobjs.c
+index ed1dca2656b0c66c..2c02e1ce7d330fc3 100644
+--- a/src/cid/cidobjs.c
++++ b/src/cid/cidobjs.c
+@@ -472,11 +472,7 @@
+
+
+ /* set default property values, cf. `ftt1drv.h' */
+-#ifdef T1_CONFIG_OPTION_OLD_ENGINE
+- driver->hinting_engine = FT_HINTING_FREETYPE;
+-#else
+ driver->hinting_engine = FT_HINTING_ADOBE;
+-#endif
+
+ driver->no_stem_darkening = TRUE;
+
+diff --git a/src/type1/t1objs.c b/src/type1/t1objs.c
+index c00b322b138f8a95..c30a49d4e2b55e92 100644
+--- a/src/type1/t1objs.c
++++ b/src/type1/t1objs.c
+@@ -587,11 +587,7 @@
+
+
+ /* set default property values, cf. `ftt1drv.h' */
+-#ifdef T1_CONFIG_OPTION_OLD_ENGINE
+- driver->hinting_engine = FT_HINTING_FREETYPE;
+-#else
+ driver->hinting_engine = FT_HINTING_ADOBE;
+-#endif
+
+ driver->no_stem_darkening = TRUE;
+
+--
+2.15.1
+