optimize fonts

This commit is contained in:
Simon Vieille 2021-11-08 11:29:06 +01:00
parent f3941c6ffc
commit 94bf90fbb5
4 changed files with 9 additions and 4 deletions

View File

@ -13,6 +13,7 @@ make
cd assets/fonts/deblan/
svg2ttf src/deblan-icon.svg deblan-icon.ttf
ttf2woff deblan-icon.ttf deblan-icon.woff
cat deblan-icon.ttf | ttf2woff2 > deblan-icon.woff2
ttf2eot deblan-icon.ttf deblan-icon.eot
-
```

View File

@ -5,14 +5,18 @@
@font-face {
font-family: "MainFont";
src: url(../fonts/ubuntu/ubuntu-light.woff) format('woff');
src:
url('../fonts/ubuntu/ubuntu-light.woff2?20211108') format('woff2'),
url('../fonts/ubuntu/ubuntu-light.woff?20211108') format('woff');
}
@font-face {
font-family: "deblan-icon";
src: url('../fonts/deblan/deblan-icon.eot?v=5');
src: url('../fonts/deblan/deblan-icon.woff?vmatrix5') format('woff'),
url('../fonts/deblan/deblan-icon.ttf?v=5') format('truetype');
src: url('../fonts/deblan/deblan-icon.eot?20211108');
src:
url('../fonts/deblan/deblan-icon.woff2?20211108') format('woff2'),
url('../fonts/deblan/deblan-icon.woff?20211108') format('woff'),
url('../fonts/deblan/deblan-icon.ttf?20211108') format('truetype');
font-style: normal;
font-weight: normal;

Binary file not shown.

Binary file not shown.