提交 03b09214 编写于 作者: B Behdad Esfahbod

[GSUB] Minor

上级 f0fc1df8
......@@ -1315,7 +1315,10 @@ GSUB::substitute_start (hb_face_t *face, hb_buffer_t *buffer)
HB_BUFFER_ALLOCATE_VAR (buffer, lig_props);
HB_BUFFER_ALLOCATE_VAR (buffer, syllable);
const GDEF &gdef = *hb_ot_layout_from_face (face)->gdef;
/* TODO This pattern is duplicated from gsubgpos-private.h. Do something about it. */
const GDEF &gdef = hb_ot_layout_from_face (face) &&
!HB_SHAPER_DATA_IS_INVALID (hb_ot_layout_from_face (face)) ?
*hb_ot_layout_from_face (face)->gdef : Null(GDEF);
unsigned int count = buffer->len;
for (unsigned int i = 0; i < count; i++) {
buffer->info[i].lig_props() = buffer->info[i].syllable() = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册