added local fonts

This commit is contained in:
thilo 2020-03-21 23:28:29 +01:00
parent b8a2049b0c
commit c4cb25ecca
4 changed files with 18 additions and 4 deletions

View file

@ -4,7 +4,6 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width">
<link href="https://fonts.googleapis.com/css?family=Zilla+Slab&display=swap" rel="stylesheet">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
</head>

View file

@ -9,9 +9,24 @@
</template>
<style>
/* Import Open Sans from Google Fonts */
@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');
@font-face {
font-family: 'Zilla Slab';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Zilla Slab'), local('ZillaSlab-Regular'), url(./assets/fonts/zilla_slab.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;
}
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Open Sans Regular'), local('OpenSans-Regular'), url(./assets/fonts/open_sans.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;
}
h1 {
font-size: 1.2em;
line-height: 1em;

Binary file not shown.

Binary file not shown.