OTF Support: Error when read google open font
#[test]
fn test_open_otf() {
use rusttype::{self, FontCollection};
let bs = fs::read("NotoSansTC-Black.otf").unwrap();
let font = FontCollection::from_bytes(&bs).unwrap();
let font = font.into_font().unwrap();//panic here
}
NotoSansTC-Black.otf is from google open font https://github.com/googlei18n/noto-cjk