Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update font types list and sniffing #57

Merged
merged 1 commit into from
Feb 9, 2018
Merged

Update font types list and sniffing #57

merged 1 commit into from
Feb 9, 2018

Conversation

domenic
Copy link
Member

@domenic domenic commented Feb 5, 2018

/cc participants in those threads: @bradleyfalzon @LeoColomb @svgeesus.

There's a separate issue of whether browsers do MIME sniffing for fonts at all, as @annevk has alluded to, but the spec at least seems to imply that they do, so let's make it accurate for now.


Preview | Diff

* Closes #27: updates the font sniffing algorithm to give the correct computed MIME types
* Closes #23: counts font/* MIME types as font types, and uses the canonical names for the computed MIME types when sniffing fonts specifically
* Closes #28: adds the ability to sniff WOFF 2 resources
Copy link

@LeoColomb LeoColomb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the ping, and thanks for the change! 👍
See my comment.

<li><code>application/font-ttf</code>
<li><code>application/font-woff</code>
<li><code>application/vnd.ms-fontobject</code>
<li><code>application/vnd.ms-opentype</code>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@domenic These types are not the ones defined on RFC8081, right? 😸

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, but they still need to be treated as font MIME types by software that's using MIME types for any determination of how to deal with a resource.

Copy link
Member

@GPHemsley GPHemsley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

This was my favorite part of writing this spec, so I'm glad to finally see it amount to something!

@domenic domenic merged commit e29b9f4 into master Feb 9, 2018
@domenic domenic deleted the font-mime-types branch February 9, 2018 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants