mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 07:51:10 +01:00
[wasm-rust] Fix shape parameters
This commit is contained in:
1 parent
d942f72c2a
commit
7e397d8695
1 file changed
+7
-1
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user