[instancer] bug fix in TupleVariationData get_size ()

We need to iterate TupleVariationHeader when calculating the total size
This commit is contained in:
Qunxin Liu 2023-03-22 19:06:58 -07:00 committed by Garret Rieger
parent be87200106
commit c1acfe9966
5 changed files with 6 additions and 2 deletions

View File

@ -360,9 +360,12 @@ struct TupleVariationData
{
unsigned total_size = min_size;
unsigned count = tupleVarCount;
const TupleVariationHeader& tuple_var_header = get_tuple_var_header();
const TupleVariationHeader *tuple_var_header = &(get_tuple_var_header());
for (unsigned i = 0; i < count; i++)
total_size += tuple_var_header.get_size (axis_count) + tuple_var_header.get_data_size ();
{
total_size += tuple_var_header->get_size (axis_count) + tuple_var_header->get_data_size ();
tuple_var_header = &tuple_var_header->get_next (axis_count);
}
return total_size;
}

Binary file not shown.

View File

@ -1,5 +1,6 @@
FONTS:
Comfortaa-Regular-new.ttf
Muli-ABC.ttf
PROFILES:
default.txt