pub enum SelectedMaxp<'a> {
Original(Maxp<'a>),
Extended(MaxpExtended<'a>),
}Expand description
A maximum profile from MAXP or the original maxp table.
Variants§
Original(Maxp<'a>)
The original maxp table.
Extended(MaxpExtended<'a>)
The MAXP table (ISO/IEC 14496-22:2026).
Implementations§
Source§impl SelectedMaxp<'_>
impl SelectedMaxp<'_>
Sourcepub fn num_glyphs(&self) -> u32
pub fn num_glyphs(&self) -> u32
Returns the glyph count without narrowing it to 16 bits.
Sourcepub fn version(&self) -> Version16Dot16
pub fn version(&self) -> Version16Dot16
Returns version from the selected table.
Sourcepub fn max_points(&self) -> Option<u16>
pub fn max_points(&self) -> Option<u16>
Returns max_points from the selected table.
Sourcepub fn max_contours(&self) -> Option<u16>
pub fn max_contours(&self) -> Option<u16>
Returns max_contours from the selected table.
Sourcepub fn max_composite_points(&self) -> Option<u16>
pub fn max_composite_points(&self) -> Option<u16>
Returns max_composite_points from the selected table.
Sourcepub fn max_composite_contours(&self) -> Option<u16>
pub fn max_composite_contours(&self) -> Option<u16>
Returns max_composite_contours from the selected table.
Sourcepub fn max_twilight_points(&self) -> Option<u16>
pub fn max_twilight_points(&self) -> Option<u16>
Returns max_twilight_points from the selected table.
Sourcepub fn max_storage(&self) -> Option<u16>
pub fn max_storage(&self) -> Option<u16>
Returns max_storage from the selected table.
Sourcepub fn max_function_defs(&self) -> Option<u16>
pub fn max_function_defs(&self) -> Option<u16>
Returns max_function_defs from the selected table.
Sourcepub fn max_instruction_defs(&self) -> Option<u16>
pub fn max_instruction_defs(&self) -> Option<u16>
Returns max_instruction_defs from the selected table.
Sourcepub fn max_stack_elements(&self) -> Option<u16>
pub fn max_stack_elements(&self) -> Option<u16>
Returns max_stack_elements from the selected table.
Sourcepub fn max_size_of_instructions(&self) -> Option<u16>
pub fn max_size_of_instructions(&self) -> Option<u16>
Returns max_size_of_instructions from the selected table.
Sourcepub fn max_component_elements(&self) -> Option<u16>
pub fn max_component_elements(&self) -> Option<u16>
Returns max_component_elements from the selected table.
Sourcepub fn max_component_depth(&self) -> Option<u16>
pub fn max_component_depth(&self) -> Option<u16>
Returns max_component_depth from the selected table.
Trait Implementations§
Source§impl<'a> Clone for SelectedMaxp<'a>
impl<'a> Clone for SelectedMaxp<'a>
Source§fn clone(&self) -> SelectedMaxp<'a>
fn clone(&self) -> SelectedMaxp<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more