[wasm-rust] Fix shape parameters
This commit is contained in:
parent
d942f72c2a
commit
7e397d8695
|
@ -3,7 +3,13 @@ use tiny_rng::{Rand, Rng};
|
||||||
use wasm_bindgen::prelude::*;
|
use wasm_bindgen::prelude::*;
|
||||||
|
|
||||||
#[wasm_bindgen]
|
#[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 mut rng = Rng::from_seed(123456);
|
||||||
let font = Font::from_ref(font_ref);
|
let font = Font::from_ref(font_ref);
|
||||||
font.shape_with(buf_ref, "ot");
|
font.shape_with(buf_ref, "ot");
|
||||||
|
|
Loading…
Reference in New Issue