summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDominik Röttsches <drott@chromium.org>2022-11-07 10:52:33 +0200
committerWerner Lemberg <wl@gnu.org>2022-11-12 17:11:36 +0100
commitba4bd5b994f18f89a08908a44fe3ffeaa5643d11 (patch)
treefceb8efb518cdec8d7f719f4d2853bae66ac2d69 /include
parente97cb9e8da39673caeadf4b99a3aa1fb9e4c7301 (diff)
downloadfreetype2-ba4bd5b994f18f89a08908a44fe3ffeaa5643d11.tar.gz
Add `TT_CONFIG_OPTION_NO_BORING_EXPANSION` configuration macro.
This gives users a possibility to deactivate new features not (yet) in the OpenType standard. * include/freetype/config/ftoption.h, devel/ftoption.h (TT_CONFIG_OPTION_NO_BORING_EXPANSION): New macro. * src/truetype/ttgxvar.c (ft_var_load_avar): Use it to disable 'avar' version 2.0 support.
Diffstat (limited to 'include')
-rw-r--r--include/freetype/config/ftoption.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h
index 1381de679..2f6cdc870 100644
--- a/include/freetype/config/ftoption.h
+++ b/include/freetype/config/ftoption.h
@@ -741,6 +741,24 @@ FT_BEGIN_HEADER
/**************************************************************************
*
+ * Define `TT_CONFIG_OPTION_NO_BORING_EXPANSION` if you want to exclude
+ * support for 'boring' OpenType specification expansions.
+ *
+ * https://github.com/harfbuzz/boring-expansion-spec
+ *
+ * Right now, the following features are covered:
+ *
+ * - 'avar' version 2.0
+ *
+ * Most likely, this is a temporary configuration option to be removed in
+ * the near future, since it is assumed that eventually those features are
+ * added to the OpenType standard.
+ */
+/* #define TT_CONFIG_OPTION_NO_BORING_EXPANSION */
+
+
+ /**************************************************************************
+ *
* Define `TT_CONFIG_OPTION_BDF` if you want to include support for an
* embedded 'BDF~' table within SFNT-based bitmap formats.
*/