From 587969af42dad7342871de693bd37683822eb6cf Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Thu, 30 Jun 2022 21:37:42 +0000 Subject: [PATCH] [subset] Drop scripts that are not in the layout_scripts list. --- src/hb-ot-layout-common.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-ot-layout-common.hh b/src/hb-ot-layout-common.hh index d34380534..226c3f0d9 100644 --- a/src/hb-ot-layout-common.hh +++ b/src/hb-ot-layout-common.hh @@ -764,6 +764,8 @@ struct Script { TRACE_SUBSET (this); if (!l->visitScript ()) return_trace (false); + if (tag && !c->plan->layout_scripts->has (*tag)) + return false; auto *out = c->serializer->start_embed (*this); if (unlikely (!out || !c->serializer->extend_min (out))) return_trace (false);