mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Use valid MIME types in the font classifier.
This commit is contained in:
parent
e17e553f04
commit
9601d555cd
1 changed files with 3 additions and 3 deletions
|
@ -971,7 +971,7 @@ impl ByteMatcher {
|
||||||
ByteMatcher {
|
ByteMatcher {
|
||||||
pattern: b"\x00\x01\x00\x00",
|
pattern: b"\x00\x01\x00\x00",
|
||||||
mask: b"\xFF\xFF\xFF\xFF",
|
mask: b"\xFF\xFF\xFF\xFF",
|
||||||
content_type: ("(TrueType)", ""),
|
content_type: ("application", "font-sfnt"),
|
||||||
leading_ignore: &[]
|
leading_ignore: &[]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -982,7 +982,7 @@ impl ByteMatcher {
|
||||||
ByteMatcher {
|
ByteMatcher {
|
||||||
pattern: b"OTTO",
|
pattern: b"OTTO",
|
||||||
mask: b"\xFF\xFF\xFF\xFF",
|
mask: b"\xFF\xFF\xFF\xFF",
|
||||||
content_type: ("(OpenType)", ""),
|
content_type: ("application", "font-sfnt"),
|
||||||
leading_ignore: &[]
|
leading_ignore: &[]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -993,7 +993,7 @@ impl ByteMatcher {
|
||||||
ByteMatcher {
|
ByteMatcher {
|
||||||
pattern: b"ttcf",
|
pattern: b"ttcf",
|
||||||
mask: b"\xFF\xFF\xFF\xFF",
|
mask: b"\xFF\xFF\xFF\xFF",
|
||||||
content_type: ("(TrueType Collection)", ""),
|
content_type: ("application", "font-sfnt"),
|
||||||
leading_ignore: &[]
|
leading_ignore: &[]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue