A zero-allocation SFNT parser.
Released under the Apache License 2.0.
```rust use std::fs::{File}; use std::io::{Read};
use sfnt::{parse_sfnt};
fn main() { // Read the font file into memory. let mut file = File::open("tests/resources/OpenSans-Italic.ttf").unwrap(); let mut bytes = vec![]; file.readtoend(&mut bytes).unwrap();
// Parse the font file and find one of the tables in the font file.
let sfnt = parse_sfnt(&bytes).unwrap();
let (record, bytes) = sfnt.find("head").unwrap();
println!("{:?}", record);
// Record { tag: "head", checksum: 4165466467, offset: 316, length: 54 }
println!("{:?}", bytes.len());
// 54
} ```