diff options
author | Werner Lemberg <wl@gnu.org> | 2016-07-11 00:12:11 +0200 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2016-07-11 00:12:11 +0200 |
commit | 84d3df75012a4b5b0b94966bcfaffd73d7f52824 (patch) | |
tree | 78350f44808113d0fae049bc564f3d0da19c1bbf /devel | |
parent | c3beb30a21a8ea9f20f6c557bba7a07106ef2d1b (diff) | |
download | freetype2-84d3df75012a4b5b0b94966bcfaffd73d7f52824.tar.gz |
Implement handling of `FREETYPE_PROPERTIES' environment variable.
Recognizing properties follows in another commit.
* devel/ftoption.h, include/freetype/config/ftoption.h
(FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES): New macro.
* include/freetype/config/ftstdlib.h (ft_getenv): New macro.
* src/base/ftinit.c (ft_set_default_properties): New function to
parse `FREETYPE_PROPERTIES' and calling `ft_property_string_set'.
(FT_Init_FreeType): Updated.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/ftoption.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/devel/ftoption.h b/devel/ftoption.h index d20df81ed..a29e46420 100644 --- a/devel/ftoption.h +++ b/devel/ftoption.h @@ -77,6 +77,36 @@ FT_BEGIN_HEADER /*************************************************************************/ /* */ + /* If you enable this configuration option, FreeType recognizes an */ + /* environment variable called `FREETYPE_PROPERTIES', which can be used */ + /* to control the various font drivers and modules. The controllable */ + /* properties are listed in the section `Controlling FreeType Modules' */ + /* in the reference's table of contents; currently there are properties */ + /* for the auto-hinter (file `ftautoh.h'), CFF (file `ftcffdrv.h'), and */ + /* TrueType (file `ftttdrv.h'). */ + /* */ + /* `FREETYPE_PROPERTIES' has the following syntax form (broken here into */ + /* multiple lines for better readability). */ + /* */ + /* <optional whitespace> */ + /* <module-name1> ':' */ + /* <property-name1> '=' <property-value1> */ + /* <whitespace> */ + /* <module-name2> ':' */ + /* <property-name2> '=' <property-value2> */ + /* ... */ + /* */ + /* Example: */ + /* */ + /* FREETYPE_PROPERTIES=truetype:interpreter-version=35 \ */ + /* cff:no-stem-darkening=1 \ */ + /* autofitter:warping=1 */ + /* */ +#define FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES + + + /*************************************************************************/ + /* */ /* Uncomment the line below if you want to activate sub-pixel rendering */ /* (a.k.a. LCD rendering, or ClearType) in this build of the library. */ /* */ |