Ajout de la directive font-display: swap;

Ça permet d'afficher le texte avec une autre police en attendant que la 
font soit téléchargée
This commit is contained in:
Darks 2019-11-03 11:48:37 +01:00
parent a194136d47
commit 0cb3966de6
Signed by untrusted user: Darks
GPG Key ID: F61F10FA138E797C
1 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,9 @@
/* Fonts */
@font-face { font-family: NotoSans; src: url(../fonts/noto_sans.ttf); }
@font-face { font-family: Twemoji; src: url(../fonts/TwitterColorEmoji.ttf); }
@font-face { font-family: Cantarell; font-weight: normal; src: url(../fonts/Cantarell-Regular.otf); }
@font-face { font-family: Cantarell; font-weight: bold; src: url(../fonts/Cantarell-Bold.otf); }
@font-face { font-family: NotoSans; src: url(../fonts/noto_sans.ttf); font-display: swap; }
@font-face { font-family: Twemoji; src: url(../fonts/TwitterColorEmoji.ttf); font-display: swap; }
@font-face { font-family: Cantarell; font-weight: normal; src: url(../fonts/Cantarell-Regular.otf); font-display: swap; }
@font-face { font-family: Cantarell; font-weight: bold; src: url(../fonts/Cantarell-Bold.otf); font-display: swap; }
/* Whole page */