ref: 448d128ec5821ec8147d58950860de0d70d0f42f
parent: 447f0773ee0b45a88c75ea825a5b2da0a99bebd8
author: Werner Lemberg <[email protected]>
date: Tue Apr 24 11:25:54 EDT 2012
Document that the auto-hinter needs a valid cmap.
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -2507,6 +2507,13 @@
* Besides deciding which hinter to use, you can also decide which
* hinting algorithm to use. See @FT_LOAD_TARGET_XXX for details.
*
+ * Note that the auto-hinter needs a valid Unicode cmap (either a native
+ * one or synthesized by FreeType) for producing correct results. If a
+ * font provides an incorrect mapping (for example, assigning the
+ * character code U+005A, LATIN CAPITAL LETTER Z, to a glyph depicting a
+ * mathematical integral sign), the auto-hinter might produce useless
+ * results.
+ *
*/
#define FT_LOAD_DEFAULT 0x0
#define FT_LOAD_NO_SCALE ( 1L << 0 )