GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-84852: Add MIME types for .eot, ,otf, .ttf, .woff and .woff2 fonts by sahil290791 · Pull Request #20199 · python/cpython Conversation
|
|
@tiran @csabella Please let me know if anything else is pending from my side? It would be great if this can be merged as currently I am working by adding certain if conditions in my current project. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hi, @tiran @csabella any estimation on if and when this will be merged? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @azimovMichael for the suggestion, will use dynamic approach currently. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
In 2017, the IANA approved a "fonts" top level media type, and so the official MIME types are now:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
the changes were made and tiran removed their request for review
|
I've updated this to fix the merge conflict, use the RFC 8081 MIME types, corrected the Embedded OpenType (EOT) MIME type (append |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| self.assertEqual(mimetypes.guess_extension('application/postscript'), '.ps') | ||
| self.assertEqual(mimetypes.guess_extension('application/vnd.apple.mpegurl'), '.m3u') | ||
| self.assertEqual(mimetypes.guess_extension('application/vnd.ms-excel'), '.xls') | ||
| self.assertEqual(mimetypes.guess_extension('application/vnd.ms-fontobject'), '.eot') |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It looks like this is going to conflict with the refactoring in #126412.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| '.otf' : 'font/otf', | ||
| '.ttf' : 'font/ttf', | ||
| '.woff' : 'font/woff', | ||
| '.woff2' : 'font/woff2', |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I verified from the RFC that these 4 lines and hence the corresponding test lines are correct. There is no reference I see for the vnd-ms addition so cannot verify. The merge conflict will be in the tests due to the switch to using subtests, which looks good to me. So merge that first and fix this.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for verifying.
application/vnd.ms-fontobject is vendor specific and can be seen for example at:
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thank you @sahil290791 for the initial PR and everyone else for the reviews! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @hugovk and the reviewers for getting this reviewed and merged. 😃 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
… fonts (python#20199) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <[email protected]>
… fonts (python#20199) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Add missing mimetypes for fonts
There was an error while loading. Please reload this page.