@Findus23 opened this Pull Request on April 4th 2018 Member

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:

-rw-r--r-- 1 lukas lukas  73K Mär 23 10:07 matomo.svg
-rw-r--r-- 1 lukas lukas  26K Mär 23 10:07 matomo.ttf
-rw-r--r-- 1 lukas lukas  26K Mär 23 10:07 matomo.woff
-rw-r--r-- 1 lukas lukas  11K Apr  4 10:31 matomo.woff2
-rw-r--r-- 1 lukas lukas  71K Feb 10 18:17 piwik.svg
-rw-r--r-- 1 lukas lukas  25K Feb 10 18:17 piwik.ttf
-rw-r--r-- 1 lukas lukas  25K Feb 10 18:17 piwik.woff
-rw-r--r-- 1 lukas lukas 9,9K Apr  4 10:31 piwik.woff2

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.

@sgiehl commented on April 4th 2018 Member

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

Powered by GitHub Issue Mirror