[ot] Short-circuit base instance advance variation
This commit is contained in:
parent
54b2b93722
commit
1e05ea79d0
|
@ -144,7 +144,7 @@ struct hmtxvmtx
|
||||||
}
|
}
|
||||||
|
|
||||||
return table->longMetric[MIN (glyph, (uint32_t) num_advances - 1)].advance
|
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:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue