ref: dd305f31f0b483c8e3a74a5a92c0aa2688c5ac7b
parent: 0164d934b651949346a27dd160fc3d7ed683312a
author: Werner Lemberg <[email protected]>
date: Wed Dec 9 16:00:33 EST 2015
[autofit] Thinko. * src/autofit/aflatin.c (af_latin_metrics_init_blues): Don't count empty blue zones (bug introduced 2015-12-06).
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2015-12-09 Werner Lemberg <[email protected]>
+ [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 <[email protected]>
+
[autofit] Introduce subscript top blue zones.
This feature is mainly for Khmer: The idea is to avoid a clash
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -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 */