Commit dbf3b43aea982b64441a69f3d17a257332fe94db

David Turner 2006-12-07T21:18:09

* src/autofit/afloader.c (af_loader_load_g): small adjustment to the spacing of auto-fitter glyphs. This only impacts rare cases (e.g. Arial Bold at rather small character sizes)

diff --git a/ChangeLog b/ChangeLog
index 1007a59..cd8e10c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-12-07  David Turner  <david@freetype.org>
+
+	* src/autofit/afloader.c (af_loader_load_g): small adjustment
+	to the spacing of auto-fitter glyphs. This only impacts rare
+	cases (e.g. Arial Bold at rather small character sizes)
+
 2006-12-03  Werner Lemberg  <wl@gnu.org>
 
 	* src/sfnt/rules.mk (SFNT_DRV_SRC): Add ttsbit0.c.
diff --git a/src/autofit/afloader.c b/src/autofit/afloader.c
index 3ff6e29..5157158 100644
--- a/src/autofit/afloader.c
+++ b/src/autofit/afloader.c
@@ -206,6 +206,12 @@
           loader->pp1.x = FT_PIX_ROUND( pp1x_uh );
           loader->pp2.x = FT_PIX_ROUND( pp2x_uh );
 
+          if ( loader->pp1.x >= new_lsb )
+            loader->pp1.x -= 64;
+
+          if ( loader->pp2.x <= pp2x_uh )
+            loader->pp2.x += 64;
+
           slot->lsb_delta = loader->pp1.x - pp1x_uh;
           slot->rsb_delta = loader->pp2.x - pp2x_uh;
         }