Struct ttf_parser::RawFaceTables

source ·
pub struct RawFaceTables<'a> {
Show 42 fields pub head: &'a [u8], pub hhea: &'a [u8], pub maxp: &'a [u8], pub bdat: Option<&'a [u8]>, pub bloc: Option<&'a [u8]>, pub cbdt: Option<&'a [u8]>, pub cblc: Option<&'a [u8]>, pub cff: Option<&'a [u8]>, pub cmap: Option<&'a [u8]>, pub colr: Option<&'a [u8]>, pub cpal: Option<&'a [u8]>, pub ebdt: Option<&'a [u8]>, pub eblc: Option<&'a [u8]>, pub glyf: Option<&'a [u8]>, pub hmtx: Option<&'a [u8]>, pub kern: Option<&'a [u8]>, pub loca: Option<&'a [u8]>, pub name: Option<&'a [u8]>, pub os2: Option<&'a [u8]>, pub post: Option<&'a [u8]>, pub sbix: Option<&'a [u8]>, pub stat: Option<&'a [u8]>, pub svg: Option<&'a [u8]>, pub vhea: Option<&'a [u8]>, pub vmtx: Option<&'a [u8]>, pub vorg: Option<&'a [u8]>, pub gdef: Option<&'a [u8]>, pub gpos: Option<&'a [u8]>, pub gsub: Option<&'a [u8]>, pub math: Option<&'a [u8]>, pub ankr: Option<&'a [u8]>, pub feat: Option<&'a [u8]>, pub kerx: Option<&'a [u8]>, pub morx: Option<&'a [u8]>, pub trak: Option<&'a [u8]>, pub avar: Option<&'a [u8]>, pub cff2: Option<&'a [u8]>, pub fvar: Option<&'a [u8]>, pub gvar: Option<&'a [u8]>, pub hvar: Option<&'a [u8]>, pub mvar: Option<&'a [u8]>, pub vvar: Option<&'a [u8]>,
}
Expand description

A list of all supported tables as raw data.

This type should be used in tandem with Face::from_raw_tables().

This allows loading font faces not only from TrueType font files, but from any source. Mainly used for parsing WOFF.

Fields§

§head: &'a [u8]§hhea: &'a [u8]§maxp: &'a [u8]§bdat: Option<&'a [u8]>§bloc: Option<&'a [u8]>§cbdt: Option<&'a [u8]>§cblc: Option<&'a [u8]>§cff: Option<&'a [u8]>§cmap: Option<&'a [u8]>§colr: Option<&'a [u8]>§cpal: Option<&'a [u8]>§ebdt: Option<&'a [u8]>§eblc: Option<&'a [u8]>§glyf: Option<&'a [u8]>§hmtx: Option<&'a [u8]>§kern: Option<&'a [u8]>§loca: Option<&'a [u8]>§name: Option<&'a [u8]>§os2: Option<&'a [u8]>§post: Option<&'a [u8]>§sbix: Option<&'a [u8]>§stat: Option<&'a [u8]>§svg: Option<&'a [u8]>§vhea: Option<&'a [u8]>§vmtx: Option<&'a [u8]>§vorg: Option<&'a [u8]>§gdef: Option<&'a [u8]>§gpos: Option<&'a [u8]>§gsub: Option<&'a [u8]>§math: Option<&'a [u8]>§ankr: Option<&'a [u8]>§feat: Option<&'a [u8]>§kerx: Option<&'a [u8]>§morx: Option<&'a [u8]>§trak: Option<&'a [u8]>§avar: Option<&'a [u8]>§cff2: Option<&'a [u8]>§fvar: Option<&'a [u8]>§gvar: Option<&'a [u8]>§hvar: Option<&'a [u8]>§mvar: Option<&'a [u8]>§vvar: Option<&'a [u8]>

Trait Implementations§

source§

impl<'a> Clone for RawFaceTables<'a>

source§

fn clone(&self) -> RawFaceTables<'a>

Returns a copy 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<'a> Default for RawFaceTables<'a>

source§

fn default() -> RawFaceTables<'a>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for RawFaceTables<'a>

§

impl<'a> RefUnwindSafe for RawFaceTables<'a>

§

impl<'a> Send for RawFaceTables<'a>

§

impl<'a> Sync for RawFaceTables<'a>

§

impl<'a> Unpin for RawFaceTables<'a>

§

impl<'a> UnwindSafe for RawFaceTables<'a>

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, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.