[repacker] small fixes.

This commit is contained in:
Garret Rieger 2024-03-08 22:05:20 +00:00
parent 17b37f10d5
commit 8e1beefe05
2 changed files with 4 additions and 4 deletions

View file

@ -248,8 +248,8 @@ struct class_def_size_estimator_t
hb_hashmap_t<unsigned, hb_set_t> glyphs_per_class;
hb_set_t included_classes;
hb_set_t included_glyphs;
unsigned class_def_1_size = 4;
unsigned class_def_2_size = 4;
unsigned class_def_1_size;
unsigned class_def_2_size;
};

View file

@ -232,7 +232,7 @@ struct PairPosFormat2 : public OT::Layout::GPOS_impl::PairPosFormat2_4<SmallType
unsigned accumulated = base_size;
unsigned coverage_size = 4;
unsigned class_def_1_size = 0;
unsigned class_def_1_size = 4;
unsigned max_coverage_size = coverage_size;
unsigned max_class_def_1_size = class_def_1_size;
@ -248,7 +248,7 @@ struct PairPosFormat2 : public OT::Layout::GPOS_impl::PairPosFormat2_4<SmallType
{
unsigned accumulated_delta = class1_record_size;
class_def_1_size = estimator.add_class_def_size (i);
coverage_size += estimator.coverage_size ();
coverage_size = estimator.coverage_size ();
max_coverage_size = hb_max (max_coverage_size, coverage_size);
max_class_def_1_size = hb_max (max_class_def_1_size, class_def_1_size);