[PairPos] Don't compute newFormat

It was wrong, because it would be writing wrong values.

Test suite doesn't seem to catch any.
This commit is contained in:
Behdad Esfahbod 2022-07-21 10:41:29 -06:00
parent 02ca025443
commit 71ce931e6d
2 changed files with 0 additions and 4 deletions

View File

@ -45,10 +45,7 @@ struct SinglePos
ValueFormat new_format = src->get_value_format ();
if (glyph_val_iter_pairs)
{
format = get_format (glyph_val_iter_pairs);
new_format = src->get_value_format ().get_effective_format (+ glyph_val_iter_pairs | hb_map (hb_second));
}
u.format = format;
switch (u.format) {

View File

@ -42,7 +42,6 @@ struct AlternateSubstFormat1_2
| hb_map (hb_add (this))
| hb_apply ([c] (const AlternateSet<Types> &_) { _.closure (c); })
;
}
void closure_lookups (hb_closure_lookups_context_t *c) const {}