diff --git a/src/hb-wasm-shape.cc b/src/hb-wasm-shape.cc index 317fb9cf0..3e2c613f5 100644 --- a/src/hb-wasm-shape.cc +++ b/src/hb-wasm-shape.cc @@ -73,7 +73,6 @@ init_wasm () return false; } - initialized = true; return true; } @@ -101,7 +100,6 @@ _hb_wasm_shaper_face_data_create (hb_face_t *face) goto fail; } - data = (hb_wasm_face_data_t *) hb_calloc (1, sizeof (hb_wasm_face_data_t)); if (unlikely (!data)) goto fail; @@ -211,10 +209,9 @@ _hb_wasm_shape (hb_shape_plan_t *shape_plan, arguments[3].kind = WASM_I32; arguments[3].of.i32 = num_features; - ret = wasm_runtime_call_wasm_a (exec_env, shape_func, - ARRAY_LENGTH (results), results, - ARRAY_LENGTH (arguments), arguments); - + ret = wasm_runtime_call_wasm_a (exec_env, shape_func, + ARRAY_LENGTH (results), results, + ARRAY_LENGTH (arguments), arguments); wasm_runtime_module_free (module_inst, arguments[2].of.i32); diff --git a/src/wasm-graphite/Makefile b/src/wasm-graphite/Makefile index 7b486ea6b..593212cc1 100644 --- a/src/wasm-graphite/Makefile +++ b/src/wasm-graphite/Makefile @@ -1,4 +1,4 @@ -all: CharisSIL-R.wasm.ttf Scheherazade-R.wasm.ttf +all: CharisSIL-R.wasm.ttf Scheherazade-R.wasm.ttf AwamiNastaliq-Regular.wasm.ttf %.wasm: %.cc ../hb-wasm-api.h emcc \