[wasm-rust] Fix shape parameters

This commit is contained in:
Simon Cozens 2023-02-26 13:57:34 +00:00 committed by Behdad Esfahbod
parent d942f72c2a
commit 7e397d8695
1 changed files with 7 additions and 1 deletions

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");