[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Fri Jan 5 14:02:13 UTC 2018


 src/hb-ot-hmtx-table.hh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1e05ea79d057fbae5f680589d4ee7d3c6a971689
Author: Behdad Esfahbod <behdad at behdad.org>
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:


More information about the HarfBuzz mailing list