From 5738851b1ca0471b4ac270b89549466202fddf10 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 24 Feb 2023 11:05:59 -0700 Subject: [PATCH] [wasm-api] Disallow "wasm" shaper in shape_with --- src/hb-wasm-api-shape.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hb-wasm-api-shape.hh b/src/hb-wasm-api-shape.hh index 625ff9fca..952aeb229 100644 --- a/src/hb-wasm-api-shape.hh +++ b/src/hb-wasm-api-shape.hh @@ -40,6 +40,9 @@ shape_with (HB_WASM_EXEC_ENV HB_REF2OBJ (font); HB_REF2OBJ (buffer); + if (0 == strcmp (shaper, "wasm")) + return false; + const char * shaper_list[] = {shaper, nullptr}; return hb_shape_full (font, buffer, nullptr, 0, shaper_list); }