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
sourceimpl PartialOrd<MaxpTable> for MaxpTable
impl PartialOrd<MaxpTable> for MaxpTable
sourcefn partial_cmp(&self, other: &MaxpTable) -> Option<Ordering>
fn partial_cmp(&self, other: &MaxpTable) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<'a> ReadBinary<'a> for MaxpTable
impl<'a> ReadBinary<'a> for MaxpTable
sourceimpl<'a> WriteBinary<&'_ MaxpTable> for MaxpTable
impl<'a> WriteBinary<&'_ MaxpTable> for MaxpTable
sourcefn write<C: WriteContext>(
ctxt: &mut C,
table: &MaxpTable
) -> Result<(), WriteError>
fn write<C: WriteContext>(
ctxt: &mut C,
table: &MaxpTable
) -> Result<(), WriteError>
Write the binary representation of Self to ctxt
.
impl StructuralPartialEq for MaxpTable
Auto Trait Implementations
impl RefUnwindSafe for MaxpTable
impl Send for MaxpTable
impl Sync for MaxpTable
impl Unpin for MaxpTable
impl UnwindSafe for MaxpTable
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'a, T> ReadBinaryDep<'a> for T where
T: ReadBinary<'a>,
impl<'a, T> ReadBinaryDep<'a> for T where
T: ReadBinary<'a>,
type Args = ()
type HostType = <T as ReadBinary<'a>>::HostType
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
<T as ReadBinaryDep<'a>>::Args
) -> Result<<T as ReadBinaryDep<'a>>::HostType, ParseError>
sourceimpl<T, HostType> WriteBinaryDep<HostType> for T where
T: WriteBinary<HostType>,
impl<T, HostType> WriteBinaryDep<HostType> for T where
T: WriteBinary<HostType>,
type Output = <T as WriteBinary<HostType>>::Output
type Output = <T as WriteBinary<HostType>>::Output
The type of the value returned by write_dep
.
sourcefn write_dep<C>(
ctxt: &mut C,
val: HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError> where
C: WriteContext,
fn write_dep<C>(
ctxt: &mut C,
val: HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError> where
C: WriteContext,
Write the binary representation of Self to ctxt
.