提交 250bcd6f 编写于 作者: B Behdad Esfahbod

[GX] Skip tail zero entries when setting variation coordinates

上级 1124d2ec
......@@ -1556,6 +1556,10 @@ hb_font_set_var_coords_normalized (hb_font_t *font,
if (font->immutable)
return;
/* Skip tail zero entries. */
while (coords_length && !coords[coords_length - 1])
coords_length--;
int *copy = (int *) calloc (coords_length, sizeof (coords[0]));
if (unlikely (!copy))
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册