diff --git a/src/fontations/lib.rs b/src/fontations/lib.rs index b90bfab2c..6423b82a5 100644 --- a/src/fontations/lib.rs +++ b/src/fontations/lib.rs @@ -78,7 +78,6 @@ extern "C" fn _hb_fontations_get_glyph_h_advances( } } - fn _hb_fontations_font_funcs_create() -> *mut hb_font_funcs_t { static static_ffuncs: AtomicPtr = AtomicPtr::new(null_mut()); diff --git a/src/fontations/meson.build b/src/fontations/meson.build index fd1d58dcd..27878c2cf 100644 --- a/src/fontations/meson.build +++ b/src/fontations/meson.build @@ -4,7 +4,10 @@ hb_rs = rust.bindgen( input : '../hb.h', output : 'hb.rs', include_directories: incsrc, - args : ['--allowlist-function=hb_.*', '--allowlist-type=hb_.*'], + args : ['--allowlist-function=hb_.*', + '--allowlist-type=hb_.*', + '--no-copy=hb_.*', + ], #args : ['--no-rustfmt-bindings'], )