[autofit] Thinko.

* src/autofit/aflatin.c (af_latin_metrics_init_blues): Don't count
empty blue zones (bug introduced 2015-12-06).
This commit is contained in:
Werner Lemberg 2015-12-09 21:00:33 +01:00
parent 0164d934b6
commit dd305f31f0
2 changed files with 15 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2015-12-09 Werner Lemberg <wl@gnu.org>
[autofit] Thinko.
* src/autofit/aflatin.c (af_latin_metrics_init_blues): Don't count
empty blue zones (bug introduced 2015-12-06).
2015-12-09 Werner Lemberg <wl@gnu.org>
[autofit] Introduce subscript top blue zones.

View File

@ -822,10 +822,14 @@
} /* end for loop */
if ( best_round )
rounds[num_rounds++] = best_y_extremum;
else
flats[num_flats++] = best_y_extremum;
if ( !( best_y_extremum == FT_INT_MIN ||
best_y_extremum == FT_INT_MAX ) )
{
if ( best_round )
rounds[num_rounds++] = best_y_extremum;
else
flats[num_flats++] = best_y_extremum;
}
} /* end while loop */