Struct mupdf_sys::fz_shaper_data_t
source · #[repr(C)]pub struct fz_shaper_data_t {
pub shaper_handle: *mut c_void,
pub destroy: Option<unsafe extern "C" fn(ctx: *mut fz_context, arg1: *mut c_void)>,
}
Expand description
In order to shape a given font, we need to declare it to a shaper library (harfbuzz, by default, but others are possible). To avoid redeclaring it every time we need to shape, we hold a shaper handle and the destructor for it within the font itself. The handle is initialised by the caller when first required and the destructor is called when the fz_font is destroyed.
Fields§
§shaper_handle: *mut c_void
§destroy: Option<unsafe extern "C" fn(ctx: *mut fz_context, arg1: *mut c_void)>
Trait Implementations§
source§impl Clone for fz_shaper_data_t
impl Clone for fz_shaper_data_t
source§fn clone(&self) -> fz_shaper_data_t
fn clone(&self) -> fz_shaper_data_t
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more