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 fonts MIME following IANA recommendation #8127

Merged
merged 1 commit into from
Jun 21, 2022
Merged

Conversation

lewer
Copy link
Contributor

@lewer lewer commented Jun 15, 2022

Hello.

MIME for ttf fonts was changed in #6464.

But according to https://www.iana.org/assignments/media-types/media-types.xhtml#font, MIME should be font/ttf and not application/font-sfnt which is listed as deprecated on the same page.

font/ttf is supported by EPUB 3 (https://www.w3.org/publishing/epub3/epub-spec.html#sec-core-media-types)

This PR also changes MIME for otf and woff fonts.

@jgm jgm merged commit ab71224 into jgm:master Jun 21, 2022
@jgm
Copy link
Owner

jgm commented Jun 21, 2022

Thank you!

@mb21
Copy link
Collaborator

mb21 commented Jun 24, 2022

thanks, btw. this list if originally from https://github.com/Happstack/happstack-server/blob/master/src/Happstack/Server/FileServe/BuildingBlocks.hs, I'm sure they'd appreciate a PR as well...

@lewer lewer deleted the fonts-mime branch June 24, 2022 12:27
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

Successfully merging this pull request may close these issues.

3 participants