提交 4b719212 编写于 作者: B Behdad Esfahbod

Minor

上级 4508789f
......@@ -502,7 +502,8 @@ struct Ligature
if (skippy_iter.idx < c->buffer->idx + count) /* No input glyphs skipped */
{
c->replace_glyphs_be16 (count, 1, (const char *) &ligGlyph, klass);
hb_codepoint_t lig_glyph = ligGlyph;
c->replace_glyphs (count, 1, &lig_glyph, klass);
}
else
{
......
......@@ -236,6 +236,14 @@ struct hb_apply_context_t
buffer->cur().props_cache() = klass; /* XXX if has gdef? */
buffer->replace_glyphs_be16 (num_in, num_out, glyph_data_be);
}
inline void replace_glyphs (unsigned int num_in,
unsigned int num_out,
hb_codepoint_t *glyph_data,
unsigned int klass = 0) const
{
buffer->cur().props_cache() = klass; /* XXX if has gdef? */
buffer->replace_glyphs (num_in, num_out, glyph_data);
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册