mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00: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 {
|
||||
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: &[]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue