Make fonts local and put them in /static

No long load them from google
This commit is contained in:
Florian Festi 2018-07-02 23:20:39 +02:00
parent cd0fcdcb96
commit c5b6e9e390
6 changed files with 33 additions and 5 deletions

32
static/fonts.css Normal file
View File

@ -0,0 +1,32 @@
/* vietnamese */
@font-face {
font-family: 'Bungee Shade';
font-style: normal;
font-weight: 400;
src: local('Bungee Shade'), local('BungeeShade-Regular'), url(fonts/bungeeshade/v3/DtVkJxarWL0t2KdzK3oI_jkc5ijTnwE.woff2) format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Bungee Shade';
font-style: normal;
font-weight: 400;
src: local('Bungee Shade'), local('BungeeShade-Regular'), url(fonts/bungeeshade/v3/DtVkJxarWL0t2KdzK3oI_jkc5yjTnwE.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Bungee Shade';
font-style: normal;
font-weight: 400;
src: local('Bungee Shade'), local('BungeeShade-Regular'), url(fonts/bungeeshade/v3/DtVkJxarWL0t2KdzK3oI_jkc6SjT.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
font-family: 'Luckiest Guy';
font-style: normal;
font-weight: 400;
src: local('Luckiest Guy Regular'), local('LuckiestGuy-Regular'), url(fonts/luckiestguy/v8/_gP_1RrxsjcxVyin9l9n_j2hTd52.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

View File

@ -1,4 +1,4 @@
@import 'https://fonts.googleapis.com/css?family=Amatic+SC|Bungee+Shade|Luckiest+Guy';
@import 'fonts.css';
html,
button,
@ -32,16 +32,12 @@ li a, a h1 {
body {min-width: 996px;}
h1 {
font-family: 'Amatic SC', cursive;
font-family: 'Luckiest Guy', cursive;
font-family: 'Bungee Shade', cursive;
font-size: 3em;
}
h2 {
font-family: 'Bungee Shade', cursive;
font-family: 'Amatic SC', cursive;
font-family: 'Luckiest Guy', cursive;
font-size: 2.5em;