提交 52df150e 编写于 作者: B Behdad Esfahbod

Fix font subclass chainup

Test passing now.
上级 f2c1dd4f
......@@ -536,11 +536,7 @@ hb_font_create_sub_font (hb_font_t *parent)
font->x_ppem = parent->x_ppem;
font->y_ppem = parent->y_ppem;
/* We can safely copy user_data from parent since we hold a reference
* onto it and it's immutable. We should not copy the destroy notifiers
* though. */
font->klass = hb_font_funcs_reference (parent->klass);
font->user_data = parent->user_data;
font->klass = &_hb_font_funcs_nil;
return font;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册