pub type Maxp<'a> = TableRef<'a, MaxpMarker>;
Expand description
Aliased Type§
struct Maxp<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Maxp<'a>
impl<'a> Maxp<'a>
Sourcepub fn version(&self) -> Version16Dot16
pub fn version(&self) -> Version16Dot16
The version: 0x00005000 for version 0.5, 0x00010000 for version 1.0.
Sourcepub fn num_glyphs(&self) -> u16
pub fn num_glyphs(&self) -> u16
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_zones(&self) -> Option<u16>
pub fn max_zones(&self) -> Option<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.
Sourcepub fn max_twilight_points(&self) -> Option<u16>
pub fn max_twilight_points(&self) -> Option<u16>
Maximum points used in Z0.
Sourcepub fn max_storage(&self) -> Option<u16>
pub fn max_storage(&self) -> Option<u16>
Number of Storage Area locations.
Sourcepub fn max_function_defs(&self) -> Option<u16>
pub fn max_function_defs(&self) -> Option<u16>
Number of FDEFs, equal to the highest function number + 1.
Sourcepub fn max_instruction_defs(&self) -> Option<u16>
pub fn max_instruction_defs(&self) -> Option<u16>
Number of IDEFs.
Sourcepub fn max_stack_elements(&self) -> Option<u16>
pub fn max_stack_elements(&self) -> Option<u16>
Maximum stack depth across Font Program (‘fpgm’ table), CVT Program (‘prep’ table) and all glyph instructions (in the ‘glyf’ table).
Sourcepub fn max_size_of_instructions(&self) -> Option<u16>
pub fn max_size_of_instructions(&self) -> Option<u16>
Maximum byte count for glyph instructions.
Sourcepub fn max_component_elements(&self) -> Option<u16>
pub fn max_component_elements(&self) -> Option<u16>
Maximum number of components referenced at “top level” for any composite glyph.
Sourcepub fn max_component_depth(&self) -> Option<u16>
pub fn max_component_depth(&self) -> Option<u16>
Maximum levels of recursion; 1 for simple components.
Source§impl<'a, T> TableRef<'a, T>
impl<'a, T> TableRef<'a, T>
Sourcepub fn resolve_offset<O: Offset, R: FontRead<'a>>(
&self,
offset: O,
) -> Result<R, ReadError>
pub fn resolve_offset<O: Offset, R: FontRead<'a>>( &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.