[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:
parent
02ca025443
commit
71ce931e6d
|
@ -45,10 +45,7 @@ struct SinglePos
|
||||||
ValueFormat new_format = src->get_value_format ();
|
ValueFormat new_format = src->get_value_format ();
|
||||||
|
|
||||||
if (glyph_val_iter_pairs)
|
if (glyph_val_iter_pairs)
|
||||||
{
|
|
||||||
format = get_format (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;
|
u.format = format;
|
||||||
switch (u.format) {
|
switch (u.format) {
|
||||||
|
|
|
@ -42,7 +42,6 @@ struct AlternateSubstFormat1_2
|
||||||
| hb_map (hb_add (this))
|
| hb_map (hb_add (this))
|
||||||
| hb_apply ([c] (const AlternateSet<Types> &_) { _.closure (c); })
|
| hb_apply ([c] (const AlternateSet<Types> &_) { _.closure (c); })
|
||||||
;
|
;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void closure_lookups (hb_closure_lookups_context_t *c) const {}
|
void closure_lookups (hb_closure_lookups_context_t *c) const {}
|
||||||
|
|
Loading…
Reference in New Issue