[wasm-rust] Fix shape parameters

This commit is contained in:
Simon Cozens authored and Behdad Esfahbod committed 2023-03-31 17:33:45 -06:00
1 parent d942f72c2a
commit 7e397d8695
1 file changed
+7 -1
+7 -1
View File
@@ -3,7 +3,13 @@ use tiny_rng::{Rand, Rng};
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub fn shape(font_ref: u32, buf_ref: u32) -> i32 {
pub fn shape(
_shape_plan: u32,
font_ref: u32,
buf_ref: u32,
_features: u32,
_num_features: u32,
) -> i32 {
let mut rng = Rng::from_seed(123456);
let font = Font::from_ref(font_ref);
font.shape_with(buf_ref, "ot");