Struct ttf_parser::FaceTables

source ·
pub struct FaceTables<'a> {
Show 20 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>>,
}
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>>

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§

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§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

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

§

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
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.