use crate::parse::*;
use crate::FontResult;
#[derive(Debug, PartialEq)]
pub struct TableMaxp {
pub num_glyphs: u16,
}
impl TableMaxp {
pub fn new(maxp: &[u8]) -> FontResult<TableMaxp> {
let mut stream = Stream::new(maxp);
stream.skip(4); let num_glyphs = stream.read_u16();
Ok(TableMaxp {
num_glyphs,
})
}
}