diff options
author | Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com> | 2019-06-28 01:01:17 +0530 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2019-08-27 09:09:48 +0200 |
commit | 9443a1bc3e6cfa315db976ff80f6c5e91b12b387 (patch) | |
tree | a7904f3e6f52c9b3d772c5af6657e36ba2a30031 /include | |
parent | 76c64f6ba1eb66cb983f38e03f39e179ceb74487 (diff) | |
download | freetype2-9443a1bc3e6cfa315db976ff80f6c5e91b12b387.tar.gz |
Add Brotli dependency and required checks.
Brotli is required for decompressing WOFF2 font directory streams.
The library is thus being added as an optional dependency for
FreeType.
* builds/unix/configure.raw: Add checks for `libbrotlidec'.
(REQUIRES_PRIVATE, LIBS_PRIVATE, LIBSSTATIC_CONFIG): Updated.
* devel/ftoption.h, include/freetype/config/ftoption.h
(FT_CONFIG_OPTION_USE_BROTLI): New macro.
Diffstat (limited to 'include')
-rw-r--r-- | include/freetype/config/ftoption.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h index 12f47a82e..c3fd181ff 100644 --- a/include/freetype/config/ftoption.h +++ b/include/freetype/config/ftoption.h @@ -294,6 +294,22 @@ FT_BEGIN_HEADER /************************************************************************** * + * Brotli support. + * + * FreeType uses the Brotli library to provide support for decompressing + * WOFF2 streams. + * + * Define this macro if you want to enable this 'feature'. + * + * If you use a build system like cmake or the `configure` script, + * options set by those programs have precedence, overwriting the value + * here with the configured one. + */ +#define FT_CONFIG_OPTION_USE_BROTLI + + + /************************************************************************** + * * Glyph Postscript Names handling * * By default, FreeType 2 is compiled with the 'psnames' module. This |