diff --git a/src/OT/Layout/Common/CoverageFormat1.hh b/src/OT/Layout/Common/CoverageFormat1.hh index dd418b0bc..cdba7a505 100644 --- a/src/OT/Layout/Common/CoverageFormat1.hh +++ b/src/OT/Layout/Common/CoverageFormat1.hh @@ -103,7 +103,7 @@ struct CoverageFormat1_3 intersect_glyphs << glyphArray[i]; } - unsigned cost () const { return 1; } + unsigned cost () const { return hb_bit_storage ((unsigned) glyphArray.len); /* bsearch cost */ } template bool collect_coverage (set_t *glyphs) const