Struct allsorts::tables::MaxpTable [−][src]
pub struct MaxpTable { pub num_glyphs: u16, pub version1_sub_table: Option<MaxpVersion1SubTable>, }
Expand description
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: u16
version1_sub_table: Option<MaxpVersion1SubTable>
Extra fields, present if maxp table is version 1.0, absent if version 0.5.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Write the binary representation of Self to ctxt
.
Auto Trait Implementations
impl RefUnwindSafe for MaxpTable
impl UnwindSafe for MaxpTable
Blanket Implementations
Mutably borrows from an owned value. Read more
type HostType = <T as ReadBinary<'a>>::HostType
pub fn read_dep(
&mut ReadCtxt<'a>,
<T as ReadBinaryDep<'a>>::Args
) -> Result<<T as ReadBinaryDep<'a>>::HostType, ParseError>
type Output = <T as WriteBinary<HostType>>::Output
type Output = <T as WriteBinary<HostType>>::Output
The type of the value returned by write_dep
.
pub fn write_dep<C>(
&mut C,
HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError> where
C: WriteContext,
pub fn write_dep<C>(
&mut C,
HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError> where
C: WriteContext,
Write the binary representation of Self to ctxt
.