Commit 7e25c688de81089bd270dfcae2a25530a5475fd6

Werner Lemberg 2005-09-09T18:00:06

* src/sfnt/sfobjs.c (sfnt_load_face): Reactivate code to set FT_FACE_FLAG_KERNING which has been commented out erroneously. * docs/CHANGES: Document it.

diff --git a/ChangeLog b/ChangeLog
index ac2fbe3..d76520c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-09-09  Werner Lemberg  <wl@gnu.org>
+
+	* src/sfnt/sfobjs.c (sfnt_load_face): Reactivate code to set
+	FT_FACE_FLAG_KERNING which has been commented out erroneously.
+
+	* docs/CHANGES: Document it.
+
 2005-09-05  Werner Lemberg  <wl@gnu.org>
 
 	Fixes for `make multi' and using C++ compiler.
diff --git a/docs/CHANGES b/docs/CHANGES
index abd29cc..4497829 100644
--- a/docs/CHANGES
+++ b/docs/CHANGES
@@ -4,6 +4,8 @@ LATEST CHANGES BETWEEN 2.2.0 and 2.1.10
 
     - Vertical metrics for SFNT fonts were incorrect sometimes.
 
+    - The FT_HAS_KERNING macro always returned 0.
+
   II. IMPORTANT CHANGES
 
     - A  new API  `FT_TrueTypeGX_Validate'  (in FT_GX_VALIDATE_H)  has
diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c
index e2d2a17..9e84662 100644
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -555,11 +555,9 @@
       if ( face->vertical_info )
         flags |= FT_FACE_FLAG_VERTICAL;
 
-#if 0
       /* kerning available ? */
       if ( TT_FACE_HAS_KERNING( face ) )
         flags |= FT_FACE_FLAG_KERNING;
-#endif
 
 #ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
       /* Don't bother to load the tables unless somebody asks for them. */