read_fonts::tables::maxp

Type Alias Maxp

source
pub type Maxp<'a> = TableRef<'a, MaxpMarker>;
Expand description

Aliased Type§

struct Maxp<'a> { /* private fields */ }

Implementations§

source§

impl<'a> Maxp<'a>

source

pub fn version(&self) -> Version16Dot16

The version: 0x00005000 for version 0.5, 0x00010000 for version 1.0.

source

pub fn num_glyphs(&self) -> u16

The number of glyphs in the font.

source

pub fn max_points(&self) -> Option<u16>

Maximum points in a non-composite glyph.

source

pub fn max_contours(&self) -> Option<u16>

Maximum contours in a non-composite glyph.

source

pub fn max_composite_points(&self) -> Option<u16>

Maximum points in a composite glyph.

source

pub fn max_composite_contours(&self) -> Option<u16>

Maximum contours in a composite glyph.

source

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.

source

pub fn max_twilight_points(&self) -> Option<u16>

Maximum points used in Z0.

source

pub fn max_storage(&self) -> Option<u16>

Number of Storage Area locations.

source

pub fn max_function_defs(&self) -> Option<u16>

Number of FDEFs, equal to the highest function number + 1.

source

pub fn max_instruction_defs(&self) -> Option<u16>

Number of IDEFs.

source

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).

source

pub fn max_size_of_instructions(&self) -> Option<u16>

Maximum byte count for glyph instructions.

source

pub fn max_component_elements(&self) -> Option<u16>

Maximum number of components referenced at “top level” for any composite glyph.

source

pub fn max_component_depth(&self) -> Option<u16>

Maximum levels of recursion; 1 for simple components.

Trait Implementations§

source§

impl<'a> Debug for Maxp<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> FontRead<'a> for Maxp<'a>

source§

fn read(data: FontData<'a>) -> Result<Self, ReadError>

Read an instance of Self from the provided data, performing validation. Read more
source§

impl<'a> SomeTable<'a> for Maxp<'a>

source§

fn type_name(&self) -> &str

The name of this table
source§

fn get_field(&self, idx: usize) -> Option<Field<'a>>

Access this table’s fields, in declaration order.
source§

impl TopLevelTable for Maxp<'_>

source§

const TAG: Tag = _

maxp