[collect_glyphs] In PairPosFornat2 do not collect classDef1

The coverage already covered that.
This commit is contained in:
Behdad Esfahbod 2017-12-16 06:18:07 -08:00
parent 81f27df4d9
commit 87cc5a65cb
1 changed files with 2 additions and 6 deletions

View File

@ -462,7 +462,7 @@ struct SinglePosFormat1
inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
{
TRACE_COLLECT_GLYPHS (this);
(this+coverage).add_coverage (c->input);
if (unlikely (!(this+coverage).add_coverage (c->input))) return;
}
inline const Coverage &get_coverage (void) const
@ -510,7 +510,7 @@ struct SinglePosFormat2
inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
{
TRACE_COLLECT_GLYPHS (this);
(this+coverage).add_coverage (c->input);
if (unlikely (!(this+coverage).add_coverage (c->input))) return;
}
inline const Coverage &get_coverage (void) const
@ -752,10 +752,6 @@ struct PairPosFormat2
TRACE_COLLECT_GLYPHS (this);
if (unlikely (!(this+coverage).add_coverage (c->input))) return;
unsigned int count1 = class1Count;
if (count1)
(this+classDef1).add_class (c->input, 0, count1 - 1);
unsigned int count2 = class2Count;
if (count2)
(this+classDef2).add_class (c->input, 0, count2 - 1);