From 4bdfaeecefae4136b9ceb451138f8055c7b74d02 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 24 Feb 2023 20:05:35 -0700 Subject: [PATCH] [wasm-shape] Set glyph flags --- src/hb-wasm-shape.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/hb-wasm-shape.cc b/src/hb-wasm-shape.cc index a44ef5e23..601fb4454 100644 --- a/src/hb-wasm-shape.cc +++ b/src/hb-wasm-shape.cc @@ -371,6 +371,12 @@ fail: release_shape_plan (face_data, plan, ret); + if (ret) + { + buffer->clear_glyph_flags (); + buffer->unsafe_to_break (); + } + return ret; }