[wasm-api] Disallow "wasm" shaper in shape_with

This commit is contained in:
Behdad Esfahbod 2023-02-24 11:05:59 -07:00
parent 2bde2f66f1
commit 5738851b1c
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}