include!("../../generated/generated_maxp.rs");
#[derive(Clone)]
pub enum SelectedMaxp<'a> {
Original(Maxp<'a>),
Extended(MaxpExtended<'a>),
}
impl SelectedMaxp<'_> {
pub fn num_glyphs(&self) -> u32 {
match self {
Self::Original(table) => table.num_glyphs().into(),
Self::Extended(table) => table.num_glyphs().into(),
}
}
selected_table_getters!(
version -> Version16Dot16,
max_points -> Option<u16>,
max_contours -> Option<u16>,
max_composite_points -> Option<u16>,
max_composite_contours -> Option<u16>,
max_zones -> Option<u16>,
max_twilight_points -> Option<u16>,
max_storage -> Option<u16>,
max_function_defs -> Option<u16>,
max_instruction_defs -> Option<u16>,
max_stack_elements -> Option<u16>,
max_size_of_instructions -> Option<u16>,
max_component_elements -> Option<u16>,
max_component_depth -> Option<u16>,
);
}