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: u16Maximum points in a non-composite glyph.
max_contours: u16Maximum contours in a non-composite glyph.
max_composite_points: u16Maximum points in a composite glyph.
max_composite_contours: u16Maximum contours in a composite glyph.
max_zones: u161 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: u16Maximum points used in Z0.
max_storage: u16Number of Storage Area locations.
max_function_defs: u16Number of FDEFs, equal to the highest function number + 1.
max_instruction_defs: u16Number of IDEFs.
max_stack_elements: u16Maximum stack depth across Font Program (‘fpgm’ table), CVT Program (‘prep’ table) and all glyph instructions (in the ‘glyf’ table).
max_size_of_instructions: u16Maximum byte count for glyph instructions.
max_component_elements: u16Maximum number of components referenced at “top level” for any composite glyph.
max_component_depth: u16Maximum levels of recursion; 1 for simple components.
Trait Implementations§
Source§impl Clone for MaxpVersion1SubTable
impl Clone for MaxpVersion1SubTable
Source§fn clone(&self) -> MaxpVersion1SubTable
fn clone(&self) -> MaxpVersion1SubTable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MaxpVersion1SubTable
impl Debug for MaxpVersion1SubTable
Source§impl Hash for MaxpVersion1SubTable
impl Hash for MaxpVersion1SubTable
Source§impl PartialEq for MaxpVersion1SubTable
impl PartialEq for MaxpVersion1SubTable
Source§impl PartialOrd for MaxpVersion1SubTable
impl PartialOrd for MaxpVersion1SubTable
Source§impl ReadBinary for MaxpVersion1SubTable
impl ReadBinary for MaxpVersion1SubTable
type HostType<'a> = MaxpVersion1SubTable
fn read<'a>(ctxt: &mut ReadCtxt<'a>) -> Result<Self, ParseError>
Source§impl WriteBinary<&MaxpVersion1SubTable> for MaxpVersion1SubTable
impl WriteBinary<&MaxpVersion1SubTable> for MaxpVersion1SubTable
Source§fn 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 Freeze for MaxpVersion1SubTable
impl RefUnwindSafe for MaxpVersion1SubTable
impl Send for MaxpVersion1SubTable
impl Sync for MaxpVersion1SubTable
impl Unpin for MaxpVersion1SubTable
impl UnwindSafe for MaxpVersion1SubTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ReadBinaryDep for Twhere
T: ReadBinary,
impl<T> ReadBinaryDep for Twhere
T: ReadBinary,
type Args<'a> = ()
type HostType<'a> = <T as ReadBinary>::HostType<'a>
fn read_dep<'a>( ctxt: &mut ReadCtxt<'a>, _: <T as ReadBinaryDep>::Args<'_>, ) -> Result<<T as ReadBinaryDep>::HostType<'a>, ParseError>
Source§impl<T, HostType> WriteBinaryDep<HostType> for Twhere
T: WriteBinary<HostType>,
impl<T, HostType> WriteBinaryDep<HostType> for Twhere
T: WriteBinary<HostType>,
Source§type Output = <T as WriteBinary<HostType>>::Output
type Output = <T as WriteBinary<HostType>>::Output
The type of the value returned by
write_dep.Source§fn 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.