From dbf3b43aea982b64441a69f3d17a257332fe94db Mon Sep 17 00:00:00 2001 From: David Turner Date: Thu, 7 Dec 2006 21:18:09 +0000 Subject: [PATCH] * 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) --- ChangeLog | 6 ++++++ src/autofit/afloader.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1007a59ab..cd8e10ca4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-12-07 David Turner + + * 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 * src/sfnt/rules.mk (SFNT_DRV_SRC): Add ttsbit0.c. diff --git a/src/autofit/afloader.c b/src/autofit/afloader.c index 3ff6e29c0..5157158f9 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; }