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


			
			
				david-pic-changes
			
			
		
Werner Lemberg 20 years ago
parent 34f4f39ad8
commit 62f8978794
  1. 6
      ChangeLog
  2. 6
      src/base/ftobjs.c

@ -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

@ -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 );
}
}
}

Loading…
Cancel
Save