[GSUB] Minor
This commit is contained in:
parent
713914d320
commit
7fbbf86efe
|
@ -920,7 +920,7 @@ struct ReverseChainSingleSubstFormat1
|
||||||
match_coverage, this,
|
match_coverage, this,
|
||||||
1))
|
1))
|
||||||
{
|
{
|
||||||
c->buffer->cur().codepoint = substitute[index];
|
c->replace_glyph_inplace (substitute[index]);
|
||||||
c->buffer->idx--; /* Reverse! */
|
c->buffer->idx--; /* Reverse! */
|
||||||
return TRACE_RETURN (true);
|
return TRACE_RETURN (true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -246,6 +246,12 @@ struct hb_apply_context_t
|
||||||
set_klass_guess (klass_guess);
|
set_klass_guess (klass_guess);
|
||||||
buffer->replace_glyph (glyph_index);
|
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;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue