aboutsummaryrefslogtreecommitdiff
path: root/src/OT/Layout/Common/CoverageFormat1.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/OT/Layout/Common/CoverageFormat1.hh')
-rw-r--r--src/OT/Layout/Common/CoverageFormat1.hh9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/OT/Layout/Common/CoverageFormat1.hh b/src/OT/Layout/Common/CoverageFormat1.hh
index 5d68e3d15..82fd48dc5 100644
--- a/src/OT/Layout/Common/CoverageFormat1.hh
+++ b/src/OT/Layout/Common/CoverageFormat1.hh
@@ -77,14 +77,7 @@ struct CoverageFormat1_3
bool intersects (const hb_set_t *glyphs) const
{
- if (glyphArray.len > glyphs->get_population () * hb_bit_storage ((unsigned) glyphArray.len) / 2)
- {
- for (hb_codepoint_t g = HB_SET_VALUE_INVALID; glyphs->next (&g);)
- if (get_coverage (g) != NOT_COVERED)
- return true;
- return false;
- }
-
+ /* TODO Speed up, using hb_set_next() and bsearch()? */
for (const auto& g : glyphArray.as_array ())
if (glyphs->has (g))
return true;