Skip to content

Commit 336b4d6

Browse files
enhancement/issue 400 switch to internal fonts (#402)
* task: remove external fonts * fix: remove truetype, add woff2 * fix: remove reference to shelf font * fix: add fallback fonts * fix: add more font charsets and styles * fix: typo in font path * fix: remove support for legacy browsers * fix: update font style * fix: update style * fix: add font-display-S * task: add fonts to gitattributes Co-authored-by: Owen Buckley <[email protected]>
1 parent a566acf commit 336b4d6

7 files changed

+18
-6
lines changed

.gitattributes

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@
66
*.jpg binary
77
*.png binary
88
*.gif binary
9-
*.ico binary
9+
*.ico binary
10+
*.woff binary
11+
*.woff2 binary
12+
*.ttf binary

www/assets/fonts/SourceSansPro.css

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* source-sans-pro-regular - latin */
2+
@font-face {
3+
font-family: 'Source Sans Pro';
4+
font-style: normal;
5+
font-weight: 400;
6+
font-display: swap;
7+
src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'),
8+
url('/assets/fonts/source-sans-pro-v13-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
9+
url('/assets/fonts/source-sans-pro-v13-latin-regular.woff') format('woff'), /* Modern Browsers */
10+
url('/assets/fonts/source-sans-pro-v13-latin-regular.ttf') format('truetype'); /* Safari, Android, iOS */
11+
}
Binary file not shown.
Binary file not shown.
Binary file not shown.

www/components/shelf/shelf.css

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
@import url('https://fonts.googleapis.com/css?family=Nunito+Sans:400,600|Poppins:300,400,600&display=swap');
2-
31
:host {
42

53
& h1, & h2, & h3, & h4, & h5, & h6 {
6-
font-family: 'Nunito Sans', sans-serif;
4+
font-family: 'Source Sans Pro', sans-serif;
75
}
86

97
& a {

www/styles/theme.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import url('//fonts.googleapis.com/css?family=Source+Sans+Pro&display=swap');
1+
@import url('/assets/fonts/SourceSansPro.css');
22

33
* {
44
margin: 0;
@@ -72,4 +72,4 @@ a {
7272
margin: inherit;
7373
color: #000;
7474
}
75-
}
75+
}

0 commit comments

Comments
 (0)