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>
dev
iGor milhit 2024-11-02 08:36:36 +01:00
parent 00e50f9055
commit 7019bf427e
Signed by: igor
GPG Key ID: 692D97C3D0228A99
11 changed files with 4 additions and 4 deletions

View File

@ -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.