shithub: freetype+ttf2subf

Download patch

ref: 7e25c688de81089bd270dfcae2a25530a5475fd6
parent: 99aa14c226abb6ee6130cc7ef91cb97695dc49cc
author: Werner Lemberg <[email protected]>
date: Fri Sep 9 14:00:06 EDT 2005

* 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.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-09-09  Werner Lemberg  <[email protected]>
+
+	* 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  <[email protected]>
 
 	Fixes for `make multi' and using C++ compiler.
--- a/docs/CHANGES
+++ b/docs/CHANGES
@@ -4,6 +4,8 @@
 
     - 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
--- 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. */