ttf_parser

Struct FaceTables

Source
pub struct FaceTables<'a> {
Show 37 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 stat: 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>>§stat: 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 u8)

🔬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.