summarylogtreecommitdiffstats
path: root/0005-Enable-old-engines-but-keep-adobe-as-default.patch
diff options
context:
space:
mode:
Diffstat (limited to '0005-Enable-old-engines-but-keep-adobe-as-default.patch')
-rw-r--r--0005-Enable-old-engines-but-keep-adobe-as-default.patch85
1 files changed, 85 insertions, 0 deletions
diff --git a/0005-Enable-old-engines-but-keep-adobe-as-default.patch b/0005-Enable-old-engines-but-keep-adobe-as-default.patch
new file mode 100644
index 000000000000..94fd614f298b
--- /dev/null
+++ b/0005-Enable-old-engines-but-keep-adobe-as-default.patch
@@ -0,0 +1,85 @@
+From 4a9da1400b53567f30effea451b7531338e0a049 Mon Sep 17 00:00:00 2001
+From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
+Date: Sat, 16 Dec 2017 23:08:02 +0100
+Subject: [PATCH 5/5] 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 776a7e938..71d9fba3c 100644
+--- a/include/freetype/config/ftoption.h
++++ b/include/freetype/config/ftoption.h
+@@ -792,7 +792,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
+
+
+ /*************************************************************************/
+@@ -834,7 +834,7 @@ FT_BEGIN_HEADER
+ * 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 5e5831568..c66857037 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 67dae5e1a..11ed32228 100644
+--- a/src/cid/cidobjs.c
++++ b/src/cid/cidobjs.c
+@@ -479,11 +479,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 ff2786ba2..fceb7bbfc 100644
+--- a/src/type1/t1objs.c
++++ b/src/type1/t1objs.c
+@@ -599,11 +599,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.27.0
+