Struct allsorts::tables::MaxpVersion1SubTable
source · [−]pub struct MaxpVersion1SubTable {Show 13 fields
pub max_points: u16,
pub max_contours: u16,
pub max_composite_points: u16,
pub max_composite_contours: u16,
pub max_zones: u16,
pub max_twilight_points: u16,
pub max_storage: u16,
pub max_function_defs: u16,
pub max_instruction_defs: u16,
pub max_stack_elements: u16,
pub max_size_of_instructions: u16,
pub max_component_elements: u16,
pub max_component_depth: u16,
}
Fields
max_points: u16
Maximum points in a non-composite glyph.
max_contours: u16
Maximum contours in a non-composite glyph.
max_composite_points: u16
Maximum points in a composite glyph.
max_composite_contours: u16
Maximum contours in a composite glyph.
max_zones: u16
1 if instructions do not use the twilight zone (Z0), or 2 if instructions do use Z0; should be set to 2 in most cases.
max_twilight_points: u16
Maximum points used in Z0.
max_storage: u16
Number of Storage Area locations.
max_function_defs: u16
Number of FDEFs, equal to the highest function number + 1.
max_instruction_defs: u16
Number of IDEFs.
max_stack_elements: u16
Maximum stack depth across Font Program (‘fpgm’ table), CVT Program (‘prep’ table) and all glyph instructions (in the ‘glyf’ table).
max_size_of_instructions: u16
Maximum byte count for glyph instructions.
max_component_elements: u16
Maximum number of components referenced at “top level” for any composite glyph.
max_component_depth: u16
Maximum levels of recursion; 1 for simple components.
Trait Implementations
sourceimpl Clone for MaxpVersion1SubTable
impl Clone for MaxpVersion1SubTable
sourcefn clone(&self) -> MaxpVersion1SubTable
fn clone(&self) -> MaxpVersion1SubTable
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MaxpVersion1SubTable
impl Debug for MaxpVersion1SubTable
sourceimpl Hash for MaxpVersion1SubTable
impl Hash for MaxpVersion1SubTable
sourceimpl PartialEq<MaxpVersion1SubTable> for MaxpVersion1SubTable
impl PartialEq<MaxpVersion1SubTable> for MaxpVersion1SubTable
sourcefn eq(&self, other: &MaxpVersion1SubTable) -> bool
fn eq(&self, other: &MaxpVersion1SubTable) -> bool
sourceimpl PartialOrd<MaxpVersion1SubTable> for MaxpVersion1SubTable
impl PartialOrd<MaxpVersion1SubTable> for MaxpVersion1SubTable
sourcefn partial_cmp(&self, other: &MaxpVersion1SubTable) -> Option<Ordering>
fn partial_cmp(&self, other: &MaxpVersion1SubTable) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl<'a> ReadBinary<'a> for MaxpVersion1SubTable
impl<'a> ReadBinary<'a> for MaxpVersion1SubTable
type HostType = MaxpVersion1SubTable
fn read(ctxt: &mut ReadCtxt<'a>) -> Result<Self, ParseError>
sourceimpl WriteBinary<&MaxpVersion1SubTable> for MaxpVersion1SubTable
impl WriteBinary<&MaxpVersion1SubTable> for MaxpVersion1SubTable
sourcefn write<C: WriteContext>(
ctxt: &mut C,
table: &MaxpVersion1SubTable
) -> Result<(), WriteError>
fn write<C: WriteContext>(
ctxt: &mut C,
table: &MaxpVersion1SubTable
) -> Result<(), WriteError>
Write the binary representation of Self to
ctxt
.impl StructuralPartialEq for MaxpVersion1SubTable
Auto Trait Implementations
impl RefUnwindSafe for MaxpVersion1SubTable
impl Send for MaxpVersion1SubTable
impl Sync for MaxpVersion1SubTable
impl Unpin for MaxpVersion1SubTable
impl UnwindSafe for MaxpVersion1SubTable
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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 Twhere
T: ReadBinary<'a>,
impl<'a, T> ReadBinaryDep<'a> for Twhere
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 Twhere
T: WriteBinary<HostType>,
impl<T, HostType> WriteBinaryDep<HostType> for Twhere
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
.