[ot] Short-circuit base instance advance variation

This commit is contained in:
Behdad Esfahbod 2018-01-05 14:01:37 +00:00
parent 54b2b93722
commit 1e05ea79d0
1 changed files with 1 additions and 1 deletions

View File

@ -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: