summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Turner <david@freetype.org>2021-06-02 19:05:09 +0200
committerDavid Turner <david@freetype.org>2021-07-12 09:25:22 +0200
commit2f11522a2ab57dd7319e86b38abf4505b0fd4b5f (patch)
tree9649629ce878ec4a657094f50e3ab90950f666aa /include
parent15e889800a2503e20c4d82c1dcfed3ee4b36527a (diff)
downloadfreetype2-2f11522a2ab57dd7319e86b38abf4505b0fd4b5f.tar.gz
Remove experimental auto-hinting 'warp' mode.
This feature was always experimental, and probably nevery worked properly. This patch completely removes it from the source code, except for a documentation block describing it for historical purpose.
Diffstat (limited to 'include')
-rw-r--r--include/freetype/config/ftoption.h18
-rw-r--r--include/freetype/ftdriver.h38
2 files changed, 4 insertions, 52 deletions
diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h
index da4250b08..ab5ab5f9f 100644
--- a/include/freetype/config/ftoption.h
+++ b/include/freetype/config/ftoption.h
@@ -911,24 +911,6 @@ FT_BEGIN_HEADER
/**************************************************************************
*
- * Compile 'autofit' module with warp hinting. The idea of the warping
- * code is to slightly scale and shift a glyph within a single dimension so
- * that as much of its segments are aligned (more or less) on the grid. To
- * find out the optimal scaling and shifting value, various parameter
- * combinations are tried and scored.
- *
- * You can switch warping on and off with the `warping` property of the
- * auto-hinter (see file `ftdriver.h` for more information; by default it
- * is switched off).
- *
- * This experimental option is not active if the rendering mode is
- * `FT_RENDER_MODE_LIGHT`.
- */
-#define AF_CONFIG_OPTION_USE_WARPER
-
-
- /**************************************************************************
- *
* Use TrueType-like size metrics for 'light' auto-hinting.
*
* It is strongly recommended to avoid this option, which exists only to
diff --git a/include/freetype/ftdriver.h b/include/freetype/ftdriver.h
index 59ae8431f..6b13d92e6 100644
--- a/include/freetype/ftdriver.h
+++ b/include/freetype/ftdriver.h
@@ -1162,11 +1162,11 @@ FT_BEGIN_HEADER
* warping
*
* @description:
- * **Experimental only**
+ * **Obsolete**
*
- * If FreeType gets compiled with option `AF_CONFIG_OPTION_USE_WARPER` to
- * activate the warp hinting code in the auto-hinter, this property
- * switches warping on and off.
+ * This property was always experimental and probably never worked
+ * correctly. It was entirely removed from the FreeType 2 sources.
+ * This entry is only here for historical reference.
*
* Warping only works in 'normal' auto-hinting mode replacing it. The
* idea of the code is to slightly scale and shift a glyph along the
@@ -1175,36 +1175,6 @@ FT_BEGIN_HEADER
* out a glyph's optimal scaling and shifting value, various parameter
* combinations are tried and scored.
*
- * By default, warping is off.
- *
- * @note:
- * This property can be used with @FT_Property_Get also.
- *
- * This property can be set via the `FREETYPE_PROPERTIES` environment
- * variable (using values 1 and 0 for 'on' and 'off', respectively).
- *
- * The warping code can also change advance widths. Have a look at the
- * `lsb_delta` and `rsb_delta` fields in the @FT_GlyphSlotRec structure
- * for details on improving inter-glyph distances while rendering.
- *
- * Since warping is a global property of the auto-hinter it is best to
- * change its value before rendering any face. Otherwise, you should
- * reload all faces that get auto-hinted in 'normal' hinting mode.
- *
- * @example:
- * This example shows how to switch on warping (omitting the error
- * handling).
- *
- * ```
- * FT_Library library;
- * FT_Bool warping = 1;
- *
- *
- * FT_Init_FreeType( &library );
- *
- * FT_Property_Set( library, "autofitter", "warping", &warping );
- * ```
- *
* @since:
* 2.6
*