Skip to content

Commit 669ddb9

Browse files
authored
Use Sarabun with all charsets (#400)
We selected Sarabun because it supports many charsets, but we used a version that only supports latin. Now that we add support for more languages, the font has to support this (otherwise I'm getting a weird fallback font).
1 parent 143c217 commit 669ddb9

13 files changed

+4
-8
lines changed

_sass/_font.scss

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
font-family: 'Sarabun';
55
font-style: normal;
66
font-weight: 400;
7-
src: url('../fonts/sarabun/sarabun-v15-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
8-
url('../fonts/sarabun/sarabun-v15-latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
7+
src: url('../fonts/sarabun/Sarabun-Regular.ttf') format('truetype');
98
}
109

1110
/* sarabun-500 - latin */
@@ -14,8 +13,7 @@
1413
font-family: 'Sarabun';
1514
font-style: normal;
1615
font-weight: 500;
17-
src: url('../fonts/sarabun/sarabun-v15-latin-500.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
18-
url('../fonts/sarabun/sarabun-v15-latin-500.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
16+
src: url('../fonts/sarabun/Sarabun-Medium.ttf') format('truetype');
1917
}
2018

2119
/* sarabun-600 - latin */
@@ -24,8 +22,7 @@
2422
font-family: 'Sarabun';
2523
font-style: normal;
2624
font-weight: 600;
27-
src: url('../fonts/sarabun/sarabun-v15-latin-600.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
28-
url('../fonts/sarabun/sarabun-v15-latin-600.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
25+
src: url('../fonts/sarabun/Sarabun-SemiBold.ttf') format('truetype');
2926
}
3027

3128
/* sarabun-700 - latin */
@@ -34,6 +31,5 @@
3431
font-family: 'Sarabun';
3532
font-style: normal;
3633
font-weight: 700;
37-
src: url('../fonts/sarabun/sarabun-v15-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
38-
url('../fonts/sarabun/sarabun-v15-latin-700.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
34+
src: url('../fonts/sarabun/Sarabun-Bold.ttf') format('truetype');
3935
}

assets/fonts/sarabun/Sarabun-Bold.ttf

80.7 KB
Binary file not shown.
81.1 KB
Binary file not shown.
81.1 KB
Binary file not shown.
81 KB
Binary file not shown.
-25.5 KB
Binary file not shown.
-11.4 KB
Binary file not shown.
-25.4 KB
Binary file not shown.
-11.4 KB
Binary file not shown.
-25.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)