src/hb-ot-hmtx-table.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 1e05ea79d057fbae5f680589d4ee7d3c6a971689 Author: Behdad Esfahbod <[email protected]> Date: Fri Jan 5 14:01:37 2018 +0000 [ot] Short-circuit base instance advance variation diff --git a/src/hb-ot-hmtx-table.hh b/src/hb-ot-hmtx-table.hh index e710aee4..29770f7a 100644 --- a/src/hb-ot-hmtx-table.hh +++ b/src/hb-ot-hmtx-table.hh @@ -144,7 +144,7 @@ struct hmtxvmtx } return table->longMetric[MIN (glyph, (uint32_t) num_advances - 1)].advance - + var_table->get_advance_var (glyph, font->coords, font->num_coords); // TODO Optimize?! + + (font->num_coords ? var_table->get_advance_var (glyph, font->coords, font->num_coords) : 0); // TODO Optimize?! } public: _______________________________________________ HarfBuzz mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/harfbuzz
