Function infer::is_font

source ·
pub fn is_font(buf: &[u8]) -> bool
Expand description

Determines whether a buffer is a font type.

§Examples

use std::fs;
assert!(infer::is_font(&fs::read("testdata/sample.ttf").unwrap()));