-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-84852: Add basic font MIME types #113592
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
Conversation
Namely: |*| ".ttf": "font/ttf" |*| ".otf", ".otc", ".ttc": "font/otf" |*| ".woff": "font/woff" |*| ".woff2": "font/woff2" References: https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face#font_mime_types https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/src#font_formats https://en.wikipedia.org/wiki/OpenType https://en.wikipedia.org/wiki/TrueType
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that it is a good idea. But this change needs a NEWS file and tests. Please open an issue for reference.
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
How shall I write the NEWS file..? The tests... It won't break anything, semantically verified. |
As for the tests, you should add cases related to your changes in |
There is already open issue for adding fonts to mimetypes: #84852. |
Finding issue for no issue... I did read. I believe the "test" files don't affect the eventual execution? |
The link is not needed, but add the list of added MIME types or file extensions. Tests are needed to check that the change makes sense and that the following changes will not unintentionally cancel them. For example, there is an alternate patch for #84852, conflicting with this PR. |
Is not the whole change most clear simply tracing the link..? Rather than spending time on tests that might not work, or might be outright malapropos... |
That's not how it works in software development. "Coding" without tests is meaningless. |
So shall be testing without "Coding". |
Namely:
|*| ".ttf": "font/ttf"
|*| ".otf", ".otc", ".ttc": "font/otf"
|*| ".woff": "font/woff"
|*| ".woff2": "font/woff2"
References:
https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face#font_mime_types
https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/src#font_formats
https://en.wikipedia.org/wiki/OpenType
https://en.wikipedia.org/wiki/TrueType