[wasm] Remove the print(returnval) and use it to fail shaper

This commit is contained in:
Behdad Esfahbod committed 2023-03-31 17:33:44 -06:00
1 parent 11fc83c0ba
commit bb8a04cbad
2 files changed
+1 -9

No files matched your search

-2
View File
@@ -68,7 +68,6 @@ And now we can run it!
```
% hb-shape test-wasm.ttf abc --shapers=wasm
1
[cent=0|sterling=1|fraction=2]
```
@@ -114,6 +113,5 @@ With this compiled into a WASM module, and installed into our font again, finall
```
$ hb-shape test-wasm.ttf abc
Hello from Rust!
1
[cent=0|sterling=1|fraction=2]
```
+1 -7
View File
@@ -213,13 +213,7 @@ _hb_wasm_shape (hb_shape_plan_t *shape_plan,
goto fail;
}
printf ("%i\n", results[0].of.i32);
if (!face_data)
goto fail;
if (0)
if (!results[0].of.i32)
{
fail:
ret = false;