mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-29 09:34:05 +01:00
[ot] Short-circuit base instance advance variation
This commit is contained in:
1 parent
54b2b93722
commit
1e05ea79d0
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user