提交 7e53415c 编写于 作者: B Behdad Esfahbod

[OTLayout] Minor fix for apply_lookup()

Should NOT change behavior, since first glyph is a match.
上级 6880f7e1
......@@ -840,13 +840,15 @@ static inline bool apply_lookup (hb_apply_context_t *c,
{
if (unlikely (c->buffer->idx == end))
return TRACE_RETURN (true);
while (c->should_skip_current_glyph ())
{
/* No lookup applied for this index */
c->buffer->next_glyph ();
if (unlikely (c->buffer->idx == end))
return TRACE_RETURN (true);
}
if (i)
while (c->should_skip_current_glyph ())
{
/* No lookup applied for this index */
c->buffer->next_glyph ();
if (unlikely (c->buffer->idx == end))
return TRACE_RETURN (true);
}
if (lookupCount && i == lookupRecord->sequenceIndex)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册