ttf_parser

Struct FaceTables

source
pub struct FaceTables<'a> {
Show 36 fields pub head: Table, pub hhea: Table, pub maxp: Table, pub bdat: Option<Table<'a>>, pub cbdt: Option<Table<'a>>, pub cff: Option<Table<'a>>, pub cmap: Option<Table<'a>>, pub colr: Option<Table<'a>>, pub ebdt: Option<Table<'a>>, pub glyf: Option<Table<'a>>, pub hmtx: Option<Table<'a>>, pub kern: Option<Table<'a>>, pub name: Option<Table<'a>>, pub os2: Option<Table<'a>>, pub post: Option<Table<'a>>, pub sbix: Option<Table<'a>>, pub svg: Option<Table<'a>>, pub vhea: Option<Table>, pub vmtx: Option<Table<'a>>, pub vorg: Option<Table<'a>>, pub gdef: Option<Table<'a>>, pub gpos: Option<LayoutTable<'a>>, pub gsub: Option<LayoutTable<'a>>, pub math: Option<Table<'a>>, pub ankr: Option<Table<'a>>, pub feat: Option<Table<'a>>, pub kerx: Option<Table<'a>>, pub morx: Option<Table<'a>>, pub trak: Option<Table<'a>>, pub avar: Option<Table<'a>>, pub cff2: Option<Table<'a>>, pub fvar: Option<Table<'a>>, pub gvar: Option<Table<'a>>, pub hvar: Option<Table<'a>>, pub mvar: Option<Table<'a>>, pub vvar: Option<Table<'a>>,
}
Expand description

Parsed face tables.

Unlike Face, provides a low-level parsing abstraction over TrueType tables. Useful when you need a direct access to tables data.

Also, used when high-level API is problematic to implement. A good example would be OpenType layout tables (GPOS/GSUB).

Fields§

§head: Table§hhea: Table§maxp: Table§bdat: Option<Table<'a>>§cbdt: Option<Table<'a>>§cff: Option<Table<'a>>§cmap: Option<Table<'a>>§colr: Option<Table<'a>>§ebdt: Option<Table<'a>>§glyf: Option<Table<'a>>§hmtx: Option<Table<'a>>§kern: Option<Table<'a>>§name: Option<Table<'a>>§os2: Option<Table<'a>>§post: Option<Table<'a>>§sbix: Option<Table<'a>>§svg: Option<Table<'a>>§vhea: Option<Table>§vmtx: Option<Table<'a>>§vorg: Option<Table<'a>>§gdef: Option<Table<'a>>§gpos: Option<LayoutTable<'a>>§gsub: Option<LayoutTable<'a>>§math: Option<Table<'a>>§ankr: Option<Table<'a>>§feat: Option<Table<'a>>§kerx: Option<Table<'a>>§morx: Option<Table<'a>>§trak: Option<Table<'a>>§avar: Option<Table<'a>>§cff2: Option<Table<'a>>§fvar: Option<Table<'a>>§gvar: Option<Table<'a>>§hvar: Option<Table<'a>>§mvar: Option<Table<'a>>§vvar: Option<Table<'a>>

Trait Implementations§

source§

impl<'a> Clone for FaceTables<'a>

source§

fn clone(&self) -> FaceTables<'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

Auto Trait Implementations§

§

impl<'a> Freeze for FaceTables<'a>

§

impl<'a> RefUnwindSafe for FaceTables<'a>

§

impl<'a> Send for FaceTables<'a>

§

impl<'a> Sync for FaceTables<'a>

§

impl<'a> Unpin for FaceTables<'a>

§

impl<'a> UnwindSafe for FaceTables<'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.