fonts: serve woff2 instead of ttf
- Serves a compressed version of the Lilex fonts, to improve the page loading and lower it's weight. The compression was done with the help of https://github.com/google/woff2 as found on https://stackoverflow.com/a/73105293. - Fixes #39. Co-Authored-by: iGor milhit <igor@milhit.ch>rss
parent
00e50f9055
commit
7019bf427e
|
@ -7,25 +7,25 @@
|
|||
@font-face {
|
||||
font-family: "mylilex";
|
||||
font-weight: 100;
|
||||
src: url("/fonts/Lilex-Thin.ttf") format('truetype');
|
||||
src: url("/fonts/Lilex-Thin.woff2") format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "mylilex";
|
||||
font-weight: 200;
|
||||
src: url("/fonts/Lilex-ExtraLight.ttf") format('truetype');
|
||||
src: url("/fonts/Lilex-ExtraLight.woff2") format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "mylilex";
|
||||
font-weight: 400;
|
||||
src: url("/fonts/Lilex-Regular.ttf") format('truetype');
|
||||
src: url("/fonts/Lilex-Regular.woff2") format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "mylilex";
|
||||
font-weight: 700;
|
||||
src: url("/fonts/Lilex-Bold.ttf") format('truetype');
|
||||
src: url("/fonts/Lilex-Bold.woff2") format('woff2');
|
||||
}
|
||||
|
||||
///////////////////
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue