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

[GSUB] Minor

上级 713914d3
......@@ -920,7 +920,7 @@ struct ReverseChainSingleSubstFormat1
match_coverage, this,
1))
{
c->buffer->cur().codepoint = substitute[index];
c->replace_glyph_inplace (substitute[index]);
c->buffer->idx--; /* Reverse! */
return TRACE_RETURN (true);
}
......
......@@ -246,6 +246,12 @@ struct hb_apply_context_t
set_klass_guess (klass_guess);
buffer->replace_glyph (glyph_index);
}
inline void replace_glyph_inplace (hb_codepoint_t glyph_index,
unsigned int klass_guess = 0) const
{
set_klass_guess (klass_guess);
buffer->cur().codepoint = glyph_index;
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册