fz_font

Struct fz_font 

Source
#[repr(C)]
pub struct fz_font {
Show 29 fields pub refs: c_int, pub name: [c_char; 32], pub buffer: *mut fz_buffer, pub flags: fz_font_flags_t, pub ft_face: *mut c_void, pub shaper_data: fz_shaper_data_t, pub t3matrix: fz_matrix, pub t3resources: *mut c_void, pub t3procs: *mut *mut fz_buffer, pub t3lists: *mut *mut fz_display_list, pub t3widths: *mut f32, pub t3flags: *mut c_ushort, pub t3doc: *mut c_void, pub t3run: Option<unsafe extern "C" fn(ctx: *mut fz_context, doc: *mut c_void, resources: *mut c_void, contents: *mut fz_buffer, dev: *mut fz_device, ctm: fz_matrix, gstate: *mut c_void, default_cs: *mut fz_default_colorspaces, fill_gstate: *mut c_void, stroke_gstate: *mut c_void)>, pub t3freeres: Option<unsafe extern "C" fn(ctx: *mut fz_context, doc: *mut c_void, resources: *mut c_void)>, pub bbox: fz_rect, pub ascender: f32, pub descender: f32, pub glyph_count: c_int, pub bbox_table: *mut *mut fz_rect, pub use_glyph_bbox: c_int, pub width_count: c_int, pub width_default: c_short, pub width_table: *mut c_short, pub advance_cache: *mut *mut f32, pub encoding_cache: [*mut u16; 256], pub has_digest: c_int, pub digest: [c_uchar; 16], pub subfont: c_int,
}

Fields§

§refs: c_int§name: [c_char; 32]§buffer: *mut fz_buffer§flags: fz_font_flags_t§ft_face: *mut c_void§shaper_data: fz_shaper_data_t§t3matrix: fz_matrix§t3resources: *mut c_void§t3procs: *mut *mut fz_buffer§t3lists: *mut *mut fz_display_list§t3widths: *mut f32§t3flags: *mut c_ushort§t3doc: *mut c_void§t3run: Option<unsafe extern "C" fn(ctx: *mut fz_context, doc: *mut c_void, resources: *mut c_void, contents: *mut fz_buffer, dev: *mut fz_device, ctm: fz_matrix, gstate: *mut c_void, default_cs: *mut fz_default_colorspaces, fill_gstate: *mut c_void, stroke_gstate: *mut c_void)>§t3freeres: Option<unsafe extern "C" fn(ctx: *mut fz_context, doc: *mut c_void, resources: *mut c_void)>§bbox: fz_rect§ascender: f32§descender: f32§glyph_count: c_int§bbox_table: *mut *mut fz_rect§use_glyph_bbox: c_int§width_count: c_int§width_default: c_short§width_table: *mut c_short§advance_cache: *mut *mut f32§encoding_cache: [*mut u16; 256]§has_digest: c_int§digest: [c_uchar; 16]§subfont: c_int

Trait Implementations§

Source§

impl Clone for fz_font

Source§

fn clone(&self) -> fz_font

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for fz_font

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for fz_font

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.