From 22a8aef9d9f8cd1c7c4cf94d18783317b20dea23 Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Wed, 30 May 2018 14:26:13 -0400 Subject: Roll FreeType to pick up color stuff. Change-Id: Ide7d414dc0f5e112b213390dc9f62e097c6a7ef9 Reviewed-on: https://skia-review.googlesource.com/130848 Commit-Queue: Ben Wagner Reviewed-by: Herb Derby --- .../freetype2/include/freetype-android/ftoption.h | 42 +++++++--------------- 1 file changed, 13 insertions(+), 29 deletions(-) (limited to 'third_party/freetype2') diff --git a/third_party/freetype2/include/freetype-android/ftoption.h b/third_party/freetype2/include/freetype-android/ftoption.h index aa2b589732..92965718a6 100644 --- a/third_party/freetype2/include/freetype-android/ftoption.h +++ b/third_party/freetype2/include/freetype-android/ftoption.h @@ -82,6 +82,10 @@ FT_BEGIN_HEADER /* to control the various font drivers and modules. The controllable */ /* properties are listed in the section @properties. */ /* */ + /* You have to undefine this configuration option on platforms that lack */ + /* the concept of environment variables (and thus don't have the */ + /* `getenv' function), for example Windows CE. */ + /* */ /* `FREETYPE_PROPERTIES' has the following syntax form (broken here into */ /* multiple lines for better readability). */ /* */ @@ -482,35 +486,6 @@ FT_BEGIN_HEADER #undef FT_CONFIG_OPTION_USE_MODULE_ERRORS - /*************************************************************************/ - /* */ - /* Position Independent Code */ - /* */ - /* If this macro is set (which is _not_ the default), FreeType2 will */ - /* avoid creating constants that require address fixups. Instead the */ - /* constants will be moved into a struct and additional intialization */ - /* code will be used. */ - /* */ - /* Setting this macro is needed for systems that prohibit address */ - /* fixups, such as BREW. [Note that standard compilers like gcc or */ - /* clang handle PIC generation automatically; you don't have to set */ - /* FT_CONFIG_OPTION_PIC, which is only necessary for very special */ - /* compilers.] */ - /* */ - /* Note that FT_CONFIG_OPTION_PIC support is not available for all */ - /* modules (see `modules.cfg' for a complete list). For building with */ - /* FT_CONFIG_OPTION_PIC support, do the following. */ - /* */ - /* 0. Clone the repository. */ - /* 1. Define FT_CONFIG_OPTION_PIC. */ - /* 2. Remove all subdirectories in `src' that don't have */ - /* FT_CONFIG_OPTION_PIC support. */ - /* 3. Comment out the corresponding modules in `modules.cfg'. */ - /* 4. Compile. */ - /* */ -/* #define FT_CONFIG_OPTION_PIC */ - - /*************************************************************************/ /*************************************************************************/ /**** ****/ @@ -529,6 +504,15 @@ FT_BEGIN_HEADER #define TT_CONFIG_OPTION_EMBEDDED_BITMAPS + /*************************************************************************/ + /* */ + /* Define TT_CONFIG_OPTION_COLOR_LAYERS if you want to support coloured */ + /* outlines (from the COLR/CPAL tables) in all formats using the SFNT */ + /* module (namely TrueType & OpenType). */ + /* */ +#define TT_CONFIG_OPTION_COLOR_LAYERS + + /*************************************************************************/ /* */ /* Define TT_CONFIG_OPTION_POSTSCRIPT_NAMES if you want to be able to */ -- cgit v1.2.3