Use valid MIME types in the font classifier.

This commit is contained in:
Josh Matthews 2015-10-25 11:48:41 -04:00
parent e17e553f04
commit 9601d555cd

View file

@ -971,7 +971,7 @@ impl ByteMatcher {
ByteMatcher {
pattern: b"\x00\x01\x00\x00",
mask: b"\xFF\xFF\xFF\xFF",
content_type: ("(TrueType)", ""),
content_type: ("application", "font-sfnt"),
leading_ignore: &[]
}
}
@ -982,7 +982,7 @@ impl ByteMatcher {
ByteMatcher {
pattern: b"OTTO",
mask: b"\xFF\xFF\xFF\xFF",
content_type: ("(OpenType)", ""),
content_type: ("application", "font-sfnt"),
leading_ignore: &[]
}
}
@ -993,7 +993,7 @@ impl ByteMatcher {
ByteMatcher {
pattern: b"ttcf",
mask: b"\xFF\xFF\xFF\xFF",
content_type: ("(TrueType Collection)", ""),
content_type: ("application", "font-sfnt"),
leading_ignore: &[]
}
}