ref: dbf3b43aea982b64441a69f3d17a257332fe94db
parent: e2e18e035c490954f2da3f16358a648f8f612ceb
author: David Turner <[email protected]>
date: Thu Dec 7 16:18:09 EST 2006
* 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)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-12-07 David Turner <[email protected]>
+
+ * 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 <[email protected]>
* src/sfnt/rules.mk (SFNT_DRV_SRC): Add ttsbit0.c.
--- 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;
}