[instancer] bug fix in TupleVariationData get_size ()

We need to iterate TupleVariationHeader when calculating the total size
This commit is contained in:
Qunxin Liu authored and Garret Rieger committed 2023-03-27 15:37:06 -06:00
1 parent be87200106
commit c1acfe9966
5 files changed
+6 -2

No files matched your search

+5 -2
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.
@@ -1,5 +1,6 @@
FONTS:
Comfortaa-Regular-new.ttf
Muli-ABC.ttf
PROFILES:
default.txt