pub fn is_font(buf: &[u8]) -> bool
Determines whether a buffer is a font type.
use std::fs; assert!(infer::is_font(&fs::read("testdata/sample.ttf").unwrap()));