[repacker] Increase max_rounds when called via public api.

This commit is contained in:
Garret Rieger 2022-07-13 19:00:08 +00:00 committed by Behdad Esfahbod
parent 4ee471922d
commit a369ab133b
2 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ template<typename T>
inline hb_blob_t*
hb_resolve_overflows (const T& packed,
hb_tag_t table_tag,
unsigned max_rounds = 20) {
unsigned max_rounds = 40) {
graph_t sorted_graph (packed);
sorted_graph.sort_shortest_distance ();

View File

@ -43,7 +43,7 @@ hb_blob_t* hb_subset_repack_or_fail (hb_object_t* hb_objects, unsigned num_hb_ob
packed.push (nullptr);
for (unsigned i = 0 ; i < num_hb_objs ; i++)
packed.push (&(hb_objects[i]));
return hb_resolve_overflows (packed, HB_OT_TAG_GSUB);
}
#endif