summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2015-04-21 07:13:59 +0200
committerWerner Lemberg <wl@gnu.org>2015-04-21 07:13:59 +0200
commit12661a5ae0e7d1e258fcadde09088d158b0188a5 (patch)
treeaf7dd2473d933f14d79593a753f013cd9db7fd6a /devel
parentb51f01583fa4ed036fff0e6ebc4b9da095bd62c4 (diff)
downloadfreetype2-12661a5ae0e7d1e258fcadde09088d158b0188a5.tar.gz
[autofit] Introduce `warping' property.
This code replaces the debugging hook from the previous commit with a better, more generic solution. * include/ftautoh.h: Document it. * src/autofit/afmodule.h (AF_ModuleRec) [AF_CONFIG_OPTION_USE_WARPER]: Add `warping' field. * src/autofit/afmodule.c (_af_debug_disable_warper): Remove. (af_property_set, af_property_get, af_autofitter_init) [AF_CONFIG_OPTION_USE_WARPER]: Handle `warping' option. * src/autofit/afhints.h (AF_HINTS_DO_WARP): Remove use of the no longer existing `_af_debug_disable_warper'. * src/autofit/afcjk.c (af_cjk_hints_init), src/autofit/aflatin.c (af_latin_hints_init), src/autofit/aflatin2.c (af_latin2_hints_init) [AF_CONFIG_OPTION_USE_WARPER]: Add `AF_SCALER_FLAG_NO_WARPER' to the scaler flags if warping is off. * src/autofit/aftypes.h: Updated.
Diffstat (limited to 'devel')
-rw-r--r--devel/ftoption.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/devel/ftoption.h b/devel/ftoption.h
index 2065142c8..805fe3de4 100644
--- a/devel/ftoption.h
+++ b/devel/ftoption.h
@@ -820,8 +820,10 @@ FT_BEGIN_HEADER
/* grid. To find out the optimal scaling and shifting value, various */
/* parameter combinations are tried and scored. */
/* */
- /* This experimental option is only active if the render mode is */
- /* FT_RENDER_MODE_LIGHT. */
+ /* This experimental option is active only if the rendering mode is */
+ /* FT_RENDER_MODE_LIGHT; you can switch warping on and off with the */
+ /* `warping' property of the auto-hinter (see file `ftautoh.h' for more */
+ /* information). */
/* */
#define AF_CONFIG_OPTION_USE_WARPER