Skip to content

Commit fe0061b

Browse files
Rotzbuakeunes
authored andcommitted
1 parent d276782 commit fe0061b

17 files changed

+16
-24
lines changed

_sass/_font.scss

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,39 @@
11
/* sarabun-regular - latin */
22
@font-face {
3-
font-family: "Sarabun";
3+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
4+
font-family: 'Sarabun';
45
font-style: normal;
56
font-weight: 400;
6-
font-display: swap;
7-
src: local("Sarabun Regular"), local("Sarabun-Regular"),
8-
url("../fonts/sarabun/sarabun-v8-latin-regular.woff2") format("woff2"),
9-
/* Chrome 26+, Opera 23+, Firefox 39+ */
10-
url("../fonts/sarabun/sarabun-v8-latin-regular.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
7+
src: url('../fonts/sarabun/sarabun-v13-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
8+
url('../fonts/sarabun/sarabun-v13-latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
119
}
1210

1311
/* sarabun-500 - latin */
1412
@font-face {
15-
font-family: "Sarabun";
13+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
14+
font-family: 'Sarabun';
1615
font-style: normal;
1716
font-weight: 500;
18-
font-display: swap;
19-
src: local("Sarabun Medium"), local("Sarabun-Medium"),
20-
url("../fonts/sarabun/sarabun-v8-latin-500.woff2") format("woff2"),
21-
/* Chrome 26+, Opera 23+, Firefox 39+ */
22-
url("../fonts/sarabun/sarabun-v8-latin-500.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
17+
src: url('../fonts/sarabun/sarabun-v13-latin-500.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
18+
url('../fonts/sarabun/sarabun-v13-latin-500.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
2319
}
2420

2521
/* sarabun-600 - latin */
2622
@font-face {
27-
font-family: "Sarabun";
23+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
24+
font-family: 'Sarabun';
2825
font-style: normal;
2926
font-weight: 600;
30-
font-display: swap;
31-
src: local("Sarabun SemiBold"), local("Sarabun-SemiBold"),
32-
url("../fonts/sarabun/sarabun-v8-latin-600.woff2") format("woff2"),
33-
/* Chrome 26+, Opera 23+, Firefox 39+ */
34-
url("../fonts/sarabun/sarabun-v8-latin-600.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
27+
src: url('../fonts/sarabun/sarabun-v13-latin-600.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
28+
url('../fonts/sarabun/sarabun-v13-latin-600.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
3529
}
3630

3731
/* sarabun-700 - latin */
3832
@font-face {
39-
font-family: "Sarabun";
33+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
34+
font-family: 'Sarabun';
4035
font-style: normal;
4136
font-weight: 700;
42-
font-display: swap;
43-
src: local("Sarabun Bold"), local("Sarabun-Bold"),
44-
url("../fonts/sarabun/sarabun-v8-latin-700.woff2") format("woff2"),
45-
/* Chrome 26+, Opera 23+, Firefox 39+ */
46-
url("../fonts/sarabun/sarabun-v8-latin-700.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
37+
src: url('../fonts/sarabun/sarabun-v13-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
38+
url('../fonts/sarabun/sarabun-v13-latin-700.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
4739
}
23.2 KB
Binary file not shown.
10.4 KB
Binary file not shown.
23.1 KB
Binary file not shown.
10.4 KB
Binary file not shown.
23.1 KB
Binary file not shown.
10.4 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
-13.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)