Skip to main content

PerTableData

Struct PerTableData 

Source
struct PerTableData<T> {
Show 54 fields ankr: T, avar: T, base: T, cff: T, cff2: T, cbdt: T, cblc: T, colr: T, cpal: T, cmap: T, cvar: T, cvt: T, dsig: T, ebdt: T, eblc: T, feat: T, fpgm: T, fvar: T, gasp: T, gdef: T, glyf: T, gpos: T, gsub: T, gvar: T, hdmx: T, head: T, hhea: T, hmtx: T, hvar: T, ift: T, iftx: T, jstf: T, kern: T, kerx: T, loca: T, ltag: T, math: T, maxp: T, meta: T, morx: T, mvar: T, name: T, os2: T, post: T, prep: T, sbix: T, stat: T, svg: T, trak: T, varc: T, vhea: T, vmtx: T, vorg: T, vvar: T,
}
Expand description

Holds some data for each possible table in a font.

Fields§

§ankr: T

Anchor point table.

§avar: T

Axis variation table.

§base: T

Baseline table.

§cff: T

Compact font format table.

§cff2: T

Compact font format 2.0 table.

§cbdt: T

Color bitmap data table.

§cblc: T

Color bitmap location table.

§colr: T

Color table.

§cpal: T

Color palette table.

§cmap: T

Character to glyph mapping table.

§cvar: T

CVT variations table.

§cvt: T

Control value table.

§dsig: T

Digital signature table.

§ebdt: T

Embedded bitmap data table.

§eblc: T

Embedded bitmap location data table.

§feat: T

Font feature table.

§fpgm: T

Font program table.

§fvar: T

Font variations table.

§gasp: T

Grid-fitting and scan-conversion procedure table.

§gdef: T

Glyph definition table.

§glyf: T

TrueType glyph data table.

§gpos: T

Glyph positioning table.

§gsub: T

Glyph substitution table.

§gvar: T

Glyph variation table.

§hdmx: T

Horizontal device metrics.

§head: T

Font header table.

§hhea: T

Horizontal header table.

§hmtx: T

Horizontal metrics table.

§hvar: T

Horizontal metrics variation table.

§ift: T

Incremental font transfer table.

§iftx: T

Incremental font transfer table.

§jstf: T

Justification table.

§kern: T

Kerning table.

§kerx: T

Extended kerning table.

§loca: T

Index to location table.

§ltag: T

Language tag table.

§math: T

Mathematical typesetting table.

§maxp: T

Maximum profile table.

§meta: T

Metadata table.

§morx: T

Extended metamorphosis table.

§mvar: T

Metrics variation table.

§name: T

Naming table.

§os2: T

OS/2 and Windows-specific metrics table.

§post: T

PostScript information table.

§prep: T

Control value program table.

§sbix: T

Standard bitmap graphics table.

§stat: T

Style attributes table.

§svg: T

Scalable vector graphics table.

§trak: T

Tracking table.

§varc: T

Variable composite/component table.

§vhea: T

Vertical header table.

§vmtx: T

Vertical metrics table.

§vorg: T

Vertical origin table.

§vvar: T

Vertical metrics variation table.

Implementations§

Source§

impl<T> PerTableData<T>

Source

fn init_all(&mut self, f: impl Fn(Tag, &mut T))

Calls f with the tag and associated data for each table.

Trait Implementations§

Source§

impl<T: Clone> Clone for PerTableData<T>

Source§

fn clone(&self) -> PerTableData<T>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<T: Debug> Debug for PerTableData<T>

Source§

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

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

impl<T: Default> Default for PerTableData<T>

Source§

fn default() -> PerTableData<T>

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

Auto Trait Implementations§

§

impl<T> Freeze for PerTableData<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for PerTableData<T>
where T: RefUnwindSafe,

§

impl<T> Send for PerTableData<T>
where T: Send,

§

impl<T> Sync for PerTableData<T>
where T: Sync,

§

impl<T> Unpin for PerTableData<T>
where T: Unpin,

§

impl<T> UnsafeUnpin for PerTableData<T>
where T: UnsafeUnpin,

§

impl<T> UnwindSafe for PerTableData<T>
where T: UnwindSafe,

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.