From ed6362600d73d5c33840716ab81b298730572316 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 23 Sep 2024 07:00:41 -0600 Subject: [PATCH] [paint] Intersect clips --- src/hb-paint-extents.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hb-paint-extents.hh b/src/hb-paint-extents.hh index b045d5094..5434e7138 100644 --- a/src/hb-paint-extents.hh +++ b/src/hb-paint-extents.hh @@ -70,7 +70,9 @@ struct hb_paint_extents_context_t const hb_transform_t &t = transforms.tail (); t.transform_extents (extents); - // TODO Intersect with existing clip?! + auto bounds = hb_bounds_t {extents}; + bounds.intersect (clips.tail ()); + clips.push (hb_bounds_t {extents}); }