[subset] Match hb rounding to fonttools for avg char width.

Update Muli and Roboto input test fonts to recalc class values. FontTools recalcs class values during instancing while harfbuzz does not (like the ft subsetter).
This commit is contained in:
Garret Rieger 2024-03-27 19:28:53 +00:00
parent 15a05b2432
commit 975bd39b15
14 changed files with 1 additions and 1 deletions

View file

@ -223,7 +223,7 @@ struct OS2
}
}
return num ? (unsigned) roundf (total_width / num) : 0;
return num ? (unsigned) roundf ((double) total_width / (double) num) : 0;
}
bool subset (hb_subset_context_t *c) const

Binary file not shown.