Type Alias read_fonts::tables::maxp::Maxp
source · 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.