[gsub] Adjust single-length ligature subst to act like single subst

This commit is contained in:
Behdad Esfahbod 2014-06-05 19:00:22 -04:00
parent aae69451df
commit b5be231720
1 changed files with 8 additions and 0 deletions

View File

@ -638,6 +638,14 @@ struct Ligature
if (unlikely (!count)) return TRACE_RETURN (false);
/* Special-case to make it in-place and not consider this
* as a "ligated" substitution. */
if (unlikely (count == 1))
{
c->replace_glyph (ligGlyph);
return TRACE_RETURN (true);
}
bool is_mark_ligature = false;
unsigned int total_component_count = 0;