perf: use woff2 format for the inter font

This massively decreases the size of the font file (~ 800kb -> 20kb) and therefore its loading time. The old `.ttf` format is still being kept as a fallback, though all modern browsers support the `woff2` format.
This commit is contained in:
Jannik Stehle
2024-05-31 14:59:34 +02:00
parent 3db878e8db
commit e2e6759999
2 changed files with 1 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
/* additional css on top of kpop */
@font-face {
font-family: Inter;
src: url(./fonts/inter.ttf) format('truetype');
src: url(./fonts/inter.woff2) format('woff2'), url(./fonts/inter.ttf) format('truetype');
font-weight: 100 900;
font-style: oblique 0deg 12deg;
}

Binary file not shown.