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

Font MIME type with the RFC 8081 #177

Closed
3 of 4 tasks
LeoColomb opened this issue Mar 15, 2017 · 5 comments
Closed
3 of 4 tasks

Font MIME type with the RFC 8081 #177

LeoColomb opened this issue Mar 15, 2017 · 5 comments

Comments

@LeoColomb
Copy link
Member

LeoColomb commented Mar 15, 2017

Hi @h5bp/server-configs folks!

Recent changes introduced by the RFC 8081 and registered at IANA about font media types should be applied to server configs, shouldn't it?

Current New
application/x-font-ttf font/ttf
application/font-otf or font/opentype font/otf
application/font-woff font/woff
application/font-woff2 font/woff2
application/font-cff or application/x-font-ttf (.ttc) font/collection

@LeoColomb
Copy link
Member Author

Ping @alrra just in case ! 😇

@ChrisMcKee
Copy link
Member

Woff/Woff2 are already in there as are TTF/OTF... sfnt is the basis of woff / otf / ot; are cff/sfnt currently in use anywhere (webfont wise)?

https://www.iana.org/assignments/media-types/application/font-sfnt
https://blog.typekit.com/2010/12/02/the-benefits-of-opentypecff-over-truetype/

@LeoColomb
Copy link
Member Author

Woff/Woff2 are already in there as are TTF/OTF... sfnt is the basis of woff / otf / ot;

What do you mean?

@ChrisMcKee
Copy link
Member

woff/2/ttf/otf mime types are already in the configs.
Are CFF/SFNT in use on the web at the moment?

@LeoColomb
Copy link
Member Author

LeoColomb commented Mar 17, 2017

woff/2/ttf/otf mime types are already in the configs.

Yep, but my issue points out that there is an update regarding the media types of these file types.
This update is introduced by the RFC 8081 published on February 2017.

Are CFF/SFNT in use on the web at the moment?

font/sfnt is a general case for both font/otf and font/ttf, see https://www.iana.org/assignments/media-types/font/sfnt:

Note that "font/sfnt" is an abstract type from which the (widely
used in practice) "font/ttf" and "font/otf" types are conceptually
derived. Use of "font/sfnt" is likely to be rare in practice, and
might be confined to:

  • Uncommon combinations such as "font/sfnt; layout=sil" that do not have a shorter type

  • Cases where a new parameter value is registered

  • Test cases, experimentation, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants