Commit 34f4f39ad8d56a2153080f865afd4bd01ed6d63f

Werner Lemberg 2004-12-09T22:22:52

* src/base/ftobjs.c (ft_glyphslot_clear): Reset `lsb_delta' and `rsb_delta'.

diff --git a/ChangeLog b/ChangeLog
index 96a20ae..5929c89 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-08  Werner Lemberg  <wl@gnu.org>
+
+	* src/base/ftobjs.c (ft_glyphslot_clear): Reset `lsb_delta' and
+	`rsb_delta'.
+
 2004-12-05  Werner Lemberg  <wl@gnu.org>
 
 	* builds/unix/install.mk (install): Use $(OBJ_BUILD) for ftconfig.h.
diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index 865d299..697f8e7 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -2581,9 +2581,9 @@ FT_BEGIN_HEADER
   /*                   kerning vector.                                     */
   /*                                                                       */
   /* <Output>                                                              */
-  /*    akerning    :: The kerning vector.  This is in font units for      */
-  /*                   scalable formats, and in pixels for fixed-sizes     */
-  /*                   formats.                                            */
+  /*    akerning    :: The kerning vector.  This is either in font units   */
+  /*                   or in pixels (26.6 format) for scalable formats,    */
+  /*                   and in pixels for fixed-sizes formats.              */
   /*                                                                       */
   /* <Return>                                                              */
   /*    FreeType error code.  0 means success.                             */
diff --git a/src/autohint/ahhint.c b/src/autohint/ahhint.c
index 8e8afea..013b951 100644
--- a/src/autohint/ahhint.c
+++ b/src/autohint/ahhint.c
@@ -1539,7 +1539,7 @@
       ah_outline_save( outline, gloader );
 
       /* we now need to hint the metrics according to the change in */
-      /* width/positioning that occured during the hinting process  */
+      /* width/positioning that occurred during the hinting process */
       if ( outline->num_vedges > 0 )
       {
         FT_Pos   old_advance, old_rsb, old_lsb, new_lsb, pp1x_uh, pp2x_uh;
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index aa25844..4180508 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -305,6 +305,8 @@
 
     slot->linearHoriAdvance = 0;
     slot->linearVertAdvance = 0;
+    slot->lsb_delta         = 0;
+    slot->rsb_delta         = 0;
   }