提交 6734ed4b 编写于 作者: B Behdad Esfahbod

[GPOS] Fix property checking

上级 cc83ae12
...@@ -778,7 +778,7 @@ struct MarkBasePosFormat1 ...@@ -778,7 +778,7 @@ struct MarkBasePosFormat1
/* now we search backwards for a non-mark glyph */ /* now we search backwards for a non-mark glyph */
unsigned int count = buffer->in_pos; unsigned int count = buffer->in_pos;
unsigned int i = 1, j = count - 1; unsigned int i = 1, j = count - 1;
while (_hb_ot_layout_skip_mark (layout, IN_INFO (j), LookupFlag::IgnoreMarks, NULL)) while (_hb_ot_layout_skip_mark (layout, IN_INFO (j), LookupFlag::IgnoreMarks, &property))
{ {
if (HB_UNLIKELY (i == count)) if (HB_UNLIKELY (i == count))
return false; return false;
...@@ -896,7 +896,7 @@ struct MarkLigPosFormat1 ...@@ -896,7 +896,7 @@ struct MarkLigPosFormat1
/* now we search backwards for a non-mark glyph */ /* now we search backwards for a non-mark glyph */
unsigned int count = buffer->in_pos; unsigned int count = buffer->in_pos;
unsigned int i = 1, j = count - 1; unsigned int i = 1, j = count - 1;
while (_hb_ot_layout_skip_mark (layout, IN_INFO (j), LookupFlag::IgnoreMarks, NULL)) while (_hb_ot_layout_skip_mark (layout, IN_INFO (j), LookupFlag::IgnoreMarks, &property))
{ {
if (HB_UNLIKELY (i == count)) if (HB_UNLIKELY (i == count))
return false; return false;
...@@ -1027,7 +1027,7 @@ struct MarkMarkPosFormat1 ...@@ -1027,7 +1027,7 @@ struct MarkMarkPosFormat1
/* now we search backwards for a suitable mark glyph until a non-mark glyph */ /* now we search backwards for a suitable mark glyph until a non-mark glyph */
unsigned int count = buffer->in_pos; unsigned int count = buffer->in_pos;
unsigned int i = 1, j = count - 1; unsigned int i = 1, j = count - 1;
while (_hb_ot_layout_skip_mark (layout, IN_INFO (j), lookup_flag, NULL)) while (_hb_ot_layout_skip_mark (layout, IN_INFO (j), lookup_flag, &property))
{ {
if (HB_UNLIKELY (i == count)) if (HB_UNLIKELY (i == count))
return false; return false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册