[psaux] Fix handling of track kerning.

* src/psaux/afmparse.c (afm_parse_track_kern): Don't inverse sign
for `min_kern'.  It is indeed quite common that track kerning
*increases* spacing for very small sizes.
This commit is contained in:
Werner Lemberg 2012-03-03 07:03:08 +01:00
parent 0fc8debeb6
commit ceed93e328
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,11 @@
2012-03-03 Werner Lemberg <wl@gnu.org>
[psaux] Fix handling of track kerning.
* src/psaux/afmparse.c (afm_parse_track_kern): Don't inverse sign
for `min_kern'. It is indeed quite common that track kerning
*increases* spacing for very small sizes.
2012-03-02 Werner Lemberg <wl@gnu.org>
[truetype] Fix Savannah bug #35689.

View File

@ -4,7 +4,7 @@
/* */
/* AFM parser (body). */
/* */
/* Copyright 2006, 2007, 2008, 2009, 2010 by */
/* Copyright 2006-2010, 2012 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@ -631,9 +631,6 @@
tk->max_ptsize = shared_vals[3].u.f;
tk->max_kern = shared_vals[4].u.f;
/* is this correct? */
if ( tk->degree < 0 && tk->min_kern > 0 )
tk->min_kern = -tk->min_kern;
break;
case AFM_TOKEN_ENDTRACKKERN: