shithub: freetype+ttf2subf

Download patch

ref: 34f4f39ad8d56a2153080f865afd4bd01ed6d63f
parent: d14023d2320ff8fb36955171439a0eda1e8106e4
author: Werner Lemberg <[email protected]>
date: Thu Dec 9 17:22:52 EST 2004

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

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-08  Werner Lemberg  <[email protected]>
+
+	* src/base/ftobjs.c (ft_glyphslot_clear): Reset `lsb_delta' and
+	`rsb_delta'.
+
 2004-12-05  Werner Lemberg  <[email protected]>
 
 	* builds/unix/install.mk (install): Use $(OBJ_BUILD) for ftconfig.h.
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -2581,9 +2581,9 @@
   /*                   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.                             */
--- 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;
--- 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;
   }