pub struct MaxpExtended<'a> {
data: TableDataRef<'a, MaxpExtendedFixedHeader>,
}Expand description
MAXP maximum profile table (ISO/IEC 14496-22:2026, 5.1.12).
Fields§
§data: TableDataRef<'a, MaxpExtendedFixedHeader>Implementations§
Source§impl<'a> MaxpExtended<'a>
impl<'a> MaxpExtended<'a>
pub const MIN_SIZE: usize
Sourcepub fn resolve_offset<O: Offset, R: FontRead<'a, Args = ()>>(
&self,
offset: O,
) -> Result<R, ReadError>
pub fn resolve_offset<O: Offset, R: FontRead<'a, Args = ()>>( &self, offset: O, ) -> Result<R, ReadError>
Resolve the provided offset from the start of this table.
Sourcepub fn offset_data(&self) -> FontData<'a>
pub fn offset_data(&self) -> FontData<'a>
Return a reference to this table’s raw data.
We use this in the compile crate to resolve offsets.
Sourcepub fn shape(&self) -> &Self
👎Deprecated: just use the base type directly
pub fn shape(&self) -> &Self
just use the base type directly
Return a reference to the table’s ‘Shape’ struct.
This is a low level implementation detail, but it can be useful in some cases where you want to know things about a table’s layout, such as the byte offsets of specific fields.
pub fn version(&self) -> Version16Dot16
Sourcepub fn num_glyphs(&self) -> Uint24
pub fn num_glyphs(&self) -> Uint24
The number of glyphs in the font.
Sourcepub fn max_points(&self) -> Option<u16>
pub fn max_points(&self) -> Option<u16>
Maximum points in a non-composite glyph.
Sourcepub fn max_contours(&self) -> Option<u16>
pub fn max_contours(&self) -> Option<u16>
Maximum contours in a non-composite glyph.
Sourcepub fn max_composite_points(&self) -> Option<u16>
pub fn max_composite_points(&self) -> Option<u16>
Maximum points in a composite glyph.
Sourcepub fn max_composite_contours(&self) -> Option<u16>
pub fn max_composite_contours(&self) -> Option<u16>
Maximum contours in a composite glyph.
Sourcepub fn max_twilight_points(&self) -> Option<u16>
pub fn max_twilight_points(&self) -> Option<u16>
Maximum points in the twilight zone.
Sourcepub fn max_storage(&self) -> Option<u16>
pub fn max_storage(&self) -> Option<u16>
Number of storage locations.
Sourcepub fn max_function_defs(&self) -> Option<u16>
pub fn max_function_defs(&self) -> Option<u16>
Number of function definitions.
Sourcepub fn max_instruction_defs(&self) -> Option<u16>
pub fn max_instruction_defs(&self) -> Option<u16>
Number of instruction definitions.
Sourcepub fn max_stack_elements(&self) -> Option<u16>
pub fn max_stack_elements(&self) -> Option<u16>
Maximum interpreter stack depth.
Sourcepub fn max_size_of_instructions(&self) -> Option<u16>
pub fn max_size_of_instructions(&self) -> Option<u16>
Maximum glyph instruction byte count.
Sourcepub fn max_component_elements(&self) -> Option<u16>
pub fn max_component_elements(&self) -> Option<u16>
Maximum top-level component count.
Sourcepub fn max_component_depth(&self) -> Option<u16>
pub fn max_component_depth(&self) -> Option<u16>
Maximum component recursion depth.
pub fn version_byte_range(&self) -> Range<usize> ⓘ
pub fn num_glyphs_byte_range(&self) -> Range<usize> ⓘ
pub fn max_points_byte_range(&self) -> Range<usize> ⓘ
pub fn max_contours_byte_range(&self) -> Range<usize> ⓘ
pub fn max_composite_points_byte_range(&self) -> Range<usize> ⓘ
pub fn max_composite_contours_byte_range(&self) -> Range<usize> ⓘ
pub fn max_zones_byte_range(&self) -> Range<usize> ⓘ
pub fn max_twilight_points_byte_range(&self) -> Range<usize> ⓘ
pub fn max_storage_byte_range(&self) -> Range<usize> ⓘ
pub fn max_function_defs_byte_range(&self) -> Range<usize> ⓘ
pub fn max_instruction_defs_byte_range(&self) -> Range<usize> ⓘ
pub fn max_stack_elements_byte_range(&self) -> Range<usize> ⓘ
pub fn max_size_of_instructions_byte_range(&self) -> Range<usize> ⓘ
pub fn max_component_elements_byte_range(&self) -> Range<usize> ⓘ
pub fn max_component_depth_byte_range(&self) -> Range<usize> ⓘ
Trait Implementations§
Source§impl<'a> Clone for MaxpExtended<'a>
impl<'a> Clone for MaxpExtended<'a>
Source§fn clone(&self) -> MaxpExtended<'a>
fn clone(&self) -> MaxpExtended<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more