matcornic/hugo-theme-learn

use only woff and woff2

DanielRuf opened this issue · 2 comments

All current browsers support woff and woff2, the others are not needed. These are often also much bigger and have less features (kerning and so on):

https://github.com/matcornic/hugo-theme-learn/tree/master/static/fonts

https://caniuse.com/woff
https://caniuse.com/woff2

Also there should be only woff2 and woff be loaded (in this order):

src: url("../fonts/Novecentosanswide-UltraLight-webfont.eot?#iefix") format("embedded-opentype"), url("../fonts/Novecentosanswide-UltraLight-webfont.woff2") format("woff2"), url("../fonts/Novecentosanswide-UltraLight-webfont.woff") format("woff"), url("../fonts/Novecentosanswide-UltraLight-webfont.ttf") format("truetype"), url("../fonts/Novecentosanswide-UltraLight-webfont.svg#novecento_sans_wideultralight") format("svg");

See https://github.com/DanielRuf/daniel-ruf.de/blob/ee1eeb4d567b929d77736445b6568574c2aa2f38/index.html#L22-L28