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
add woff2 fonts #12695
add woff2 fonts #12695
Conversation
Would you mind mentioning the additional steps required for generating the woff2 in https://github.com/matomo-org/matomo/blob/3.x-dev/plugins/Morpheus/fonts/README.md |
Seems like I missed your comments. I have now put it on my todo-list for next week. |
This should be done now. (I also updated the files to the latest matomo.ttf) |
Wondering if we maybe could add a test to check if the woff2 files are out of sync |
@sgiehl, @diosmosis |
Haven't thought about alternatives, but one way might be to just run No worries if you don't have time to add it. |
Travis seems to be using Ubuntu Trusty, but the woff2 package is only available in later versions: |
Added an issue for automated tests: #13210 |
* add woff2 fonts * update woff2 files * explain how to create woff2 files
fixes #12662
Woff2 is supported by every modern browser and the rest falls back to woff or worst case ttf.
Woff2 uses brotli for compression and is therefore far smaller than woff:
I have also changed the order because every browser uses the first font it supports and therefor woff wasn't used before.
The file has been generated with the official google tool: https://github.com/google/woff2
I guess we'll also need to update the server config as in #11091.