* src/base/ftobjs.c (FT_Get_Kerning): Always round towards zero

for FT_KERNING_DEFAULT.  This greatly enhances the kerning for
small ppem values.
This commit is contained in:
Werner Lemberg 2004-12-09 22:57:18 +00:00
parent 34f4f39ad8
commit 62f8978794
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2004-12-09 Werner Lemberg <wl@gnu.org>
* src/base/ftobjs.c (FT_Get_Kerning): Always round towards zero
for FT_KERNING_DEFAULT. This greatly enhances the kerning for
small ppem values.
2004-12-08 Werner Lemberg <wl@gnu.org>
* src/base/ftobjs.c (ft_glyphslot_clear): Reset `lsb_delta' and

View File

@ -2137,8 +2137,10 @@
if ( kern_mode != FT_KERNING_UNFITTED )
{
akerning->x = FT_PIX_ROUND( akerning->x );
akerning->y = FT_PIX_ROUND( akerning->y );
akerning->x = akerning->x > 0 ? FT_PIX_FLOOR( akerning->x )
: FT_PIX_CEIL( akerning->x );
akerning->y = akerning->y > 0 ? FT_PIX_FLOOR( akerning->y )
: FT_PIX_CEIL( akerning->y );
}
}
}