[autofit] Thinko. * src/autofit/aflatin.c (af_latin_metrics_init_blues): Don't count empty blue zones (bug introduced 2015-12-06).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
diff --git a/ChangeLog b/ChangeLog
index 73239bd..e1e3462 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
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.
This feature is mainly for Khmer: The idea is to avoid a clash
diff --git a/src/autofit/aflatin.c b/src/autofit/aflatin.c
index aeaffb8..b85d6cd 100644
--- 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 */