Struct allsorts_no_std::tables::MaxpTable[][src]

pub struct MaxpTable {
    pub num_glyphs: u16,
    pub version1_sub_table: Option<MaxpVersion1SubTable>,
}

maxp - Maximum profile

This table establishes the memory requirements for this font. Fonts with CFF data must use Version 0.5 of this table, specifying only the numGlyphs field. Fonts with TrueType outlines must use Version 1.0 of this table, where all data is required.

https://docs.microsoft.com/en-us/typography/opentype/spec/maxp

Fields

num_glyphs: u16version1_sub_table: Option<MaxpVersion1SubTable>

Extra fields, present if maxp table is version 1.0, absent if version 0.5.

Trait Implementations

impl Clone for MaxpTable[src]

impl Debug for MaxpTable[src]

impl Hash for MaxpTable[src]

impl PartialEq<MaxpTable> for MaxpTable[src]

impl PartialOrd<MaxpTable> for MaxpTable[src]

impl<'a> ReadBinary<'a> for MaxpTable[src]

type HostType = Self

impl StructuralPartialEq for MaxpTable[src]

impl<'a> WriteBinary<&'_ MaxpTable> for MaxpTable[src]

type Output = ()

The type of the value returned by write.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> ReadBinaryDep<'a> for T where
    T: ReadBinary<'a>, 
[src]

type Args = ()

type HostType = <T as ReadBinary<'a>>::HostType

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T, HostType> WriteBinaryDep<HostType> for T where
    T: WriteBinary<HostType>, 
[src]

type Args = ()

The type of the arguments supplied to write_dep.

type Output = <T as WriteBinary<HostType>>::Output

The type of the value returned by write_dep.