thira-sans 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/100.css +52 -0
- package/200.css +52 -0
- package/300.css +52 -0
- package/400.css +52 -0
- package/500.css +52 -0
- package/600.css +52 -0
- package/700.css +52 -0
- package/README.md +8 -2
- package/fallback.css +51 -0
- package/files/thira-sans-100.woff2 +0 -0
- package/files/thira-sans-200.woff2 +0 -0
- package/files/thira-sans-300.woff2 +0 -0
- package/files/thira-sans-400.woff2 +0 -0
- package/files/thira-sans-500.woff2 +0 -0
- package/files/thira-sans-600.woff2 +0 -0
- package/files/thira-sans-700.woff2 +0 -0
- package/files/thira-sans-variable.woff2 +0 -0
- package/index.css +52 -0
- package/package.json +5 -1
package/100.css
CHANGED
|
@@ -6,3 +6,55 @@
|
|
|
6
6
|
font-weight: 100;
|
|
7
7
|
src: url('./files/thira-sans-100.woff2') format('woff2');
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
/* Thira Sans Fallback: Arial (Latin) and Tahoma (Thai) resized to Thira Sans' metrics,
|
|
11
|
+
* so the swap to the webfont barely moves the layout. Put it right after 'Thira Sans':
|
|
12
|
+
* font-family: 'Thira Sans', 'Thira Sans Fallback', sans-serif;
|
|
13
|
+
* Generated by scripts/fallback-metrics.py. */
|
|
14
|
+
@font-face {
|
|
15
|
+
font-family: 'Thira Sans Fallback';
|
|
16
|
+
font-style: normal;
|
|
17
|
+
font-weight: 100 549;
|
|
18
|
+
src: local('Arial'), local('ArialMT');
|
|
19
|
+
unicode-range: U+0000-0DFF, U+0E80-10FFFF;
|
|
20
|
+
size-adjust: 100.52%;
|
|
21
|
+
ascent-override: 111.91%;
|
|
22
|
+
descent-override: 37.30%;
|
|
23
|
+
line-gap-override: 0.00%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@font-face {
|
|
27
|
+
font-family: 'Thira Sans Fallback';
|
|
28
|
+
font-style: normal;
|
|
29
|
+
font-weight: 550 900;
|
|
30
|
+
src: local('Arial Bold'), local('Arial-BoldMT');
|
|
31
|
+
unicode-range: U+0000-0DFF, U+0E80-10FFFF;
|
|
32
|
+
size-adjust: 98.38%;
|
|
33
|
+
ascent-override: 114.36%;
|
|
34
|
+
descent-override: 38.12%;
|
|
35
|
+
line-gap-override: 0.00%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@font-face {
|
|
39
|
+
font-family: 'Thira Sans Fallback';
|
|
40
|
+
font-style: normal;
|
|
41
|
+
font-weight: 100 549;
|
|
42
|
+
src: local('Tahoma');
|
|
43
|
+
unicode-range: U+0E00-0E7F;
|
|
44
|
+
size-adjust: 96.05%;
|
|
45
|
+
ascent-override: 117.13%;
|
|
46
|
+
descent-override: 39.04%;
|
|
47
|
+
line-gap-override: 0.00%;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@font-face {
|
|
51
|
+
font-family: 'Thira Sans Fallback';
|
|
52
|
+
font-style: normal;
|
|
53
|
+
font-weight: 550 900;
|
|
54
|
+
src: local('Tahoma Bold'), local('Tahoma-Bold');
|
|
55
|
+
unicode-range: U+0E00-0E7F;
|
|
56
|
+
size-adjust: 92.58%;
|
|
57
|
+
ascent-override: 121.51%;
|
|
58
|
+
descent-override: 40.50%;
|
|
59
|
+
line-gap-override: 0.00%;
|
|
60
|
+
}
|
package/200.css
CHANGED
|
@@ -6,3 +6,55 @@
|
|
|
6
6
|
font-weight: 200;
|
|
7
7
|
src: url('./files/thira-sans-200.woff2') format('woff2');
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
/* Thira Sans Fallback: Arial (Latin) and Tahoma (Thai) resized to Thira Sans' metrics,
|
|
11
|
+
* so the swap to the webfont barely moves the layout. Put it right after 'Thira Sans':
|
|
12
|
+
* font-family: 'Thira Sans', 'Thira Sans Fallback', sans-serif;
|
|
13
|
+
* Generated by scripts/fallback-metrics.py. */
|
|
14
|
+
@font-face {
|
|
15
|
+
font-family: 'Thira Sans Fallback';
|
|
16
|
+
font-style: normal;
|
|
17
|
+
font-weight: 100 549;
|
|
18
|
+
src: local('Arial'), local('ArialMT');
|
|
19
|
+
unicode-range: U+0000-0DFF, U+0E80-10FFFF;
|
|
20
|
+
size-adjust: 100.52%;
|
|
21
|
+
ascent-override: 111.91%;
|
|
22
|
+
descent-override: 37.30%;
|
|
23
|
+
line-gap-override: 0.00%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@font-face {
|
|
27
|
+
font-family: 'Thira Sans Fallback';
|
|
28
|
+
font-style: normal;
|
|
29
|
+
font-weight: 550 900;
|
|
30
|
+
src: local('Arial Bold'), local('Arial-BoldMT');
|
|
31
|
+
unicode-range: U+0000-0DFF, U+0E80-10FFFF;
|
|
32
|
+
size-adjust: 98.38%;
|
|
33
|
+
ascent-override: 114.36%;
|
|
34
|
+
descent-override: 38.12%;
|
|
35
|
+
line-gap-override: 0.00%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@font-face {
|
|
39
|
+
font-family: 'Thira Sans Fallback';
|
|
40
|
+
font-style: normal;
|
|
41
|
+
font-weight: 100 549;
|
|
42
|
+
src: local('Tahoma');
|
|
43
|
+
unicode-range: U+0E00-0E7F;
|
|
44
|
+
size-adjust: 96.05%;
|
|
45
|
+
ascent-override: 117.13%;
|
|
46
|
+
descent-override: 39.04%;
|
|
47
|
+
line-gap-override: 0.00%;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@font-face {
|
|
51
|
+
font-family: 'Thira Sans Fallback';
|
|
52
|
+
font-style: normal;
|
|
53
|
+
font-weight: 550 900;
|
|
54
|
+
src: local('Tahoma Bold'), local('Tahoma-Bold');
|
|
55
|
+
unicode-range: U+0E00-0E7F;
|
|
56
|
+
size-adjust: 92.58%;
|
|
57
|
+
ascent-override: 121.51%;
|
|
58
|
+
descent-override: 40.50%;
|
|
59
|
+
line-gap-override: 0.00%;
|
|
60
|
+
}
|
package/300.css
CHANGED
|
@@ -6,3 +6,55 @@
|
|
|
6
6
|
font-weight: 300;
|
|
7
7
|
src: url('./files/thira-sans-300.woff2') format('woff2');
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
/* Thira Sans Fallback: Arial (Latin) and Tahoma (Thai) resized to Thira Sans' metrics,
|
|
11
|
+
* so the swap to the webfont barely moves the layout. Put it right after 'Thira Sans':
|
|
12
|
+
* font-family: 'Thira Sans', 'Thira Sans Fallback', sans-serif;
|
|
13
|
+
* Generated by scripts/fallback-metrics.py. */
|
|
14
|
+
@font-face {
|
|
15
|
+
font-family: 'Thira Sans Fallback';
|
|
16
|
+
font-style: normal;
|
|
17
|
+
font-weight: 100 549;
|
|
18
|
+
src: local('Arial'), local('ArialMT');
|
|
19
|
+
unicode-range: U+0000-0DFF, U+0E80-10FFFF;
|
|
20
|
+
size-adjust: 100.52%;
|
|
21
|
+
ascent-override: 111.91%;
|
|
22
|
+
descent-override: 37.30%;
|
|
23
|
+
line-gap-override: 0.00%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@font-face {
|
|
27
|
+
font-family: 'Thira Sans Fallback';
|
|
28
|
+
font-style: normal;
|
|
29
|
+
font-weight: 550 900;
|
|
30
|
+
src: local('Arial Bold'), local('Arial-BoldMT');
|
|
31
|
+
unicode-range: U+0000-0DFF, U+0E80-10FFFF;
|
|
32
|
+
size-adjust: 98.38%;
|
|
33
|
+
ascent-override: 114.36%;
|
|
34
|
+
descent-override: 38.12%;
|
|
35
|
+
line-gap-override: 0.00%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@font-face {
|
|
39
|
+
font-family: 'Thira Sans Fallback';
|
|
40
|
+
font-style: normal;
|
|
41
|
+
font-weight: 100 549;
|
|
42
|
+
src: local('Tahoma');
|
|
43
|
+
unicode-range: U+0E00-0E7F;
|
|
44
|
+
size-adjust: 96.05%;
|
|
45
|
+
ascent-override: 117.13%;
|
|
46
|
+
descent-override: 39.04%;
|
|
47
|
+
line-gap-override: 0.00%;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@font-face {
|
|
51
|
+
font-family: 'Thira Sans Fallback';
|
|
52
|
+
font-style: normal;
|
|
53
|
+
font-weight: 550 900;
|
|
54
|
+
src: local('Tahoma Bold'), local('Tahoma-Bold');
|
|
55
|
+
unicode-range: U+0E00-0E7F;
|
|
56
|
+
size-adjust: 92.58%;
|
|
57
|
+
ascent-override: 121.51%;
|
|
58
|
+
descent-override: 40.50%;
|
|
59
|
+
line-gap-override: 0.00%;
|
|
60
|
+
}
|
package/400.css
CHANGED
|
@@ -6,3 +6,55 @@
|
|
|
6
6
|
font-weight: 400;
|
|
7
7
|
src: url('./files/thira-sans-400.woff2') format('woff2');
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
/* Thira Sans Fallback: Arial (Latin) and Tahoma (Thai) resized to Thira Sans' metrics,
|
|
11
|
+
* so the swap to the webfont barely moves the layout. Put it right after 'Thira Sans':
|
|
12
|
+
* font-family: 'Thira Sans', 'Thira Sans Fallback', sans-serif;
|
|
13
|
+
* Generated by scripts/fallback-metrics.py. */
|
|
14
|
+
@font-face {
|
|
15
|
+
font-family: 'Thira Sans Fallback';
|
|
16
|
+
font-style: normal;
|
|
17
|
+
font-weight: 100 549;
|
|
18
|
+
src: local('Arial'), local('ArialMT');
|
|
19
|
+
unicode-range: U+0000-0DFF, U+0E80-10FFFF;
|
|
20
|
+
size-adjust: 100.52%;
|
|
21
|
+
ascent-override: 111.91%;
|
|
22
|
+
descent-override: 37.30%;
|
|
23
|
+
line-gap-override: 0.00%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@font-face {
|
|
27
|
+
font-family: 'Thira Sans Fallback';
|
|
28
|
+
font-style: normal;
|
|
29
|
+
font-weight: 550 900;
|
|
30
|
+
src: local('Arial Bold'), local('Arial-BoldMT');
|
|
31
|
+
unicode-range: U+0000-0DFF, U+0E80-10FFFF;
|
|
32
|
+
size-adjust: 98.38%;
|
|
33
|
+
ascent-override: 114.36%;
|
|
34
|
+
descent-override: 38.12%;
|
|
35
|
+
line-gap-override: 0.00%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@font-face {
|
|
39
|
+
font-family: 'Thira Sans Fallback';
|
|
40
|
+
font-style: normal;
|
|
41
|
+
font-weight: 100 549;
|
|
42
|
+
src: local('Tahoma');
|
|
43
|
+
unicode-range: U+0E00-0E7F;
|
|
44
|
+
size-adjust: 96.05%;
|
|
45
|
+
ascent-override: 117.13%;
|
|
46
|
+
descent-override: 39.04%;
|
|
47
|
+
line-gap-override: 0.00%;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@font-face {
|
|
51
|
+
font-family: 'Thira Sans Fallback';
|
|
52
|
+
font-style: normal;
|
|
53
|
+
font-weight: 550 900;
|
|
54
|
+
src: local('Tahoma Bold'), local('Tahoma-Bold');
|
|
55
|
+
unicode-range: U+0E00-0E7F;
|
|
56
|
+
size-adjust: 92.58%;
|
|
57
|
+
ascent-override: 121.51%;
|
|
58
|
+
descent-override: 40.50%;
|
|
59
|
+
line-gap-override: 0.00%;
|
|
60
|
+
}
|
package/500.css
CHANGED
|
@@ -6,3 +6,55 @@
|
|
|
6
6
|
font-weight: 500;
|
|
7
7
|
src: url('./files/thira-sans-500.woff2') format('woff2');
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
/* Thira Sans Fallback: Arial (Latin) and Tahoma (Thai) resized to Thira Sans' metrics,
|
|
11
|
+
* so the swap to the webfont barely moves the layout. Put it right after 'Thira Sans':
|
|
12
|
+
* font-family: 'Thira Sans', 'Thira Sans Fallback', sans-serif;
|
|
13
|
+
* Generated by scripts/fallback-metrics.py. */
|
|
14
|
+
@font-face {
|
|
15
|
+
font-family: 'Thira Sans Fallback';
|
|
16
|
+
font-style: normal;
|
|
17
|
+
font-weight: 100 549;
|
|
18
|
+
src: local('Arial'), local('ArialMT');
|
|
19
|
+
unicode-range: U+0000-0DFF, U+0E80-10FFFF;
|
|
20
|
+
size-adjust: 100.52%;
|
|
21
|
+
ascent-override: 111.91%;
|
|
22
|
+
descent-override: 37.30%;
|
|
23
|
+
line-gap-override: 0.00%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@font-face {
|
|
27
|
+
font-family: 'Thira Sans Fallback';
|
|
28
|
+
font-style: normal;
|
|
29
|
+
font-weight: 550 900;
|
|
30
|
+
src: local('Arial Bold'), local('Arial-BoldMT');
|
|
31
|
+
unicode-range: U+0000-0DFF, U+0E80-10FFFF;
|
|
32
|
+
size-adjust: 98.38%;
|
|
33
|
+
ascent-override: 114.36%;
|
|
34
|
+
descent-override: 38.12%;
|
|
35
|
+
line-gap-override: 0.00%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@font-face {
|
|
39
|
+
font-family: 'Thira Sans Fallback';
|
|
40
|
+
font-style: normal;
|
|
41
|
+
font-weight: 100 549;
|
|
42
|
+
src: local('Tahoma');
|
|
43
|
+
unicode-range: U+0E00-0E7F;
|
|
44
|
+
size-adjust: 96.05%;
|
|
45
|
+
ascent-override: 117.13%;
|
|
46
|
+
descent-override: 39.04%;
|
|
47
|
+
line-gap-override: 0.00%;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@font-face {
|
|
51
|
+
font-family: 'Thira Sans Fallback';
|
|
52
|
+
font-style: normal;
|
|
53
|
+
font-weight: 550 900;
|
|
54
|
+
src: local('Tahoma Bold'), local('Tahoma-Bold');
|
|
55
|
+
unicode-range: U+0E00-0E7F;
|
|
56
|
+
size-adjust: 92.58%;
|
|
57
|
+
ascent-override: 121.51%;
|
|
58
|
+
descent-override: 40.50%;
|
|
59
|
+
line-gap-override: 0.00%;
|
|
60
|
+
}
|
package/600.css
CHANGED
|
@@ -6,3 +6,55 @@
|
|
|
6
6
|
font-weight: 600;
|
|
7
7
|
src: url('./files/thira-sans-600.woff2') format('woff2');
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
/* Thira Sans Fallback: Arial (Latin) and Tahoma (Thai) resized to Thira Sans' metrics,
|
|
11
|
+
* so the swap to the webfont barely moves the layout. Put it right after 'Thira Sans':
|
|
12
|
+
* font-family: 'Thira Sans', 'Thira Sans Fallback', sans-serif;
|
|
13
|
+
* Generated by scripts/fallback-metrics.py. */
|
|
14
|
+
@font-face {
|
|
15
|
+
font-family: 'Thira Sans Fallback';
|
|
16
|
+
font-style: normal;
|
|
17
|
+
font-weight: 100 549;
|
|
18
|
+
src: local('Arial'), local('ArialMT');
|
|
19
|
+
unicode-range: U+0000-0DFF, U+0E80-10FFFF;
|
|
20
|
+
size-adjust: 100.52%;
|
|
21
|
+
ascent-override: 111.91%;
|
|
22
|
+
descent-override: 37.30%;
|
|
23
|
+
line-gap-override: 0.00%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@font-face {
|
|
27
|
+
font-family: 'Thira Sans Fallback';
|
|
28
|
+
font-style: normal;
|
|
29
|
+
font-weight: 550 900;
|
|
30
|
+
src: local('Arial Bold'), local('Arial-BoldMT');
|
|
31
|
+
unicode-range: U+0000-0DFF, U+0E80-10FFFF;
|
|
32
|
+
size-adjust: 98.38%;
|
|
33
|
+
ascent-override: 114.36%;
|
|
34
|
+
descent-override: 38.12%;
|
|
35
|
+
line-gap-override: 0.00%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@font-face {
|
|
39
|
+
font-family: 'Thira Sans Fallback';
|
|
40
|
+
font-style: normal;
|
|
41
|
+
font-weight: 100 549;
|
|
42
|
+
src: local('Tahoma');
|
|
43
|
+
unicode-range: U+0E00-0E7F;
|
|
44
|
+
size-adjust: 96.05%;
|
|
45
|
+
ascent-override: 117.13%;
|
|
46
|
+
descent-override: 39.04%;
|
|
47
|
+
line-gap-override: 0.00%;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@font-face {
|
|
51
|
+
font-family: 'Thira Sans Fallback';
|
|
52
|
+
font-style: normal;
|
|
53
|
+
font-weight: 550 900;
|
|
54
|
+
src: local('Tahoma Bold'), local('Tahoma-Bold');
|
|
55
|
+
unicode-range: U+0E00-0E7F;
|
|
56
|
+
size-adjust: 92.58%;
|
|
57
|
+
ascent-override: 121.51%;
|
|
58
|
+
descent-override: 40.50%;
|
|
59
|
+
line-gap-override: 0.00%;
|
|
60
|
+
}
|
package/700.css
CHANGED
|
@@ -6,3 +6,55 @@
|
|
|
6
6
|
font-weight: 700;
|
|
7
7
|
src: url('./files/thira-sans-700.woff2') format('woff2');
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
/* Thira Sans Fallback: Arial (Latin) and Tahoma (Thai) resized to Thira Sans' metrics,
|
|
11
|
+
* so the swap to the webfont barely moves the layout. Put it right after 'Thira Sans':
|
|
12
|
+
* font-family: 'Thira Sans', 'Thira Sans Fallback', sans-serif;
|
|
13
|
+
* Generated by scripts/fallback-metrics.py. */
|
|
14
|
+
@font-face {
|
|
15
|
+
font-family: 'Thira Sans Fallback';
|
|
16
|
+
font-style: normal;
|
|
17
|
+
font-weight: 100 549;
|
|
18
|
+
src: local('Arial'), local('ArialMT');
|
|
19
|
+
unicode-range: U+0000-0DFF, U+0E80-10FFFF;
|
|
20
|
+
size-adjust: 100.52%;
|
|
21
|
+
ascent-override: 111.91%;
|
|
22
|
+
descent-override: 37.30%;
|
|
23
|
+
line-gap-override: 0.00%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@font-face {
|
|
27
|
+
font-family: 'Thira Sans Fallback';
|
|
28
|
+
font-style: normal;
|
|
29
|
+
font-weight: 550 900;
|
|
30
|
+
src: local('Arial Bold'), local('Arial-BoldMT');
|
|
31
|
+
unicode-range: U+0000-0DFF, U+0E80-10FFFF;
|
|
32
|
+
size-adjust: 98.38%;
|
|
33
|
+
ascent-override: 114.36%;
|
|
34
|
+
descent-override: 38.12%;
|
|
35
|
+
line-gap-override: 0.00%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@font-face {
|
|
39
|
+
font-family: 'Thira Sans Fallback';
|
|
40
|
+
font-style: normal;
|
|
41
|
+
font-weight: 100 549;
|
|
42
|
+
src: local('Tahoma');
|
|
43
|
+
unicode-range: U+0E00-0E7F;
|
|
44
|
+
size-adjust: 96.05%;
|
|
45
|
+
ascent-override: 117.13%;
|
|
46
|
+
descent-override: 39.04%;
|
|
47
|
+
line-gap-override: 0.00%;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@font-face {
|
|
51
|
+
font-family: 'Thira Sans Fallback';
|
|
52
|
+
font-style: normal;
|
|
53
|
+
font-weight: 550 900;
|
|
54
|
+
src: local('Tahoma Bold'), local('Tahoma-Bold');
|
|
55
|
+
unicode-range: U+0E00-0E7F;
|
|
56
|
+
size-adjust: 92.58%;
|
|
57
|
+
ascent-override: 121.51%;
|
|
58
|
+
descent-override: 40.50%;
|
|
59
|
+
line-gap-override: 0.00%;
|
|
60
|
+
}
|
package/README.md
CHANGED
|
@@ -21,12 +21,18 @@ import 'thira-sans';
|
|
|
21
21
|
|
|
22
22
|
```css
|
|
23
23
|
body {
|
|
24
|
-
font-family: 'Thira Sans',
|
|
24
|
+
font-family: 'Thira Sans', 'Thira Sans Fallback', sans-serif;
|
|
25
25
|
}
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
Every weight from 100 to 700 is then available, including in-between values such as `font-weight: 450`.
|
|
29
29
|
|
|
30
|
+
### Fallback without layout shift
|
|
31
|
+
|
|
32
|
+
Every CSS file also registers `Thira Sans Fallback`: Arial for Latin and Tahoma for Thai (both installed on Windows and macOS), resized with `size-adjust` and given Thira Sans' ascent and descent. Put it right after `Thira Sans`. Text drawn before the webfont arrives then has the same line length and line height, so nothing jumps when the font swaps in. On systems without Arial or Tahoma it is skipped and the next font in your stack is used.
|
|
33
|
+
|
|
34
|
+
It is also available on its own as `thira-sans/fallback.css`.
|
|
35
|
+
|
|
30
36
|
### Static weights
|
|
31
37
|
|
|
32
38
|
To ship only the weights you use, import them instead of the variable font:
|
|
@@ -61,7 +67,7 @@ Below that, the tallest stacks can be cut at the top of the first line and the b
|
|
|
61
67
|
|
|
62
68
|
## Status
|
|
63
69
|
|
|
64
|
-
0.x: Thira Sans has soft, rounded corners since 0.2.0 and supports `ss03` (single-storey a/g), `ss04` (dotted zero) and `zero` (slashed zero). Since 0.3.0 `line-height: normal` is 1.5 and stacked Thai marks are no longer clipped on Windows. It is a fork of [Anuphan](https://github.com/cadsondemak/Anuphan) by Cadson Demak and is being redesigned. Glyph shapes and metrics will change between minor versions.
|
|
70
|
+
0.x: Thira Sans has soft, rounded corners since 0.2.0 and supports `ss03` (single-storey a/g), `ss04` (dotted zero) and `zero` (slashed zero). Since 0.3.0 `line-height: normal` is 1.5 and stacked Thai marks are no longer clipped on Windows. 0.4.0 adds the metric-matched `Thira Sans Fallback`. It is a fork of [Anuphan](https://github.com/cadsondemak/Anuphan) by Cadson Demak and is being redesigned. Glyph shapes and metrics will change between minor versions.
|
|
65
71
|
|
|
66
72
|
## License
|
|
67
73
|
|
package/fallback.css
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* Thira Sans Fallback: Arial (Latin) and Tahoma (Thai) resized to Thira Sans' metrics,
|
|
2
|
+
* so the swap to the webfont barely moves the layout. Put it right after 'Thira Sans':
|
|
3
|
+
* font-family: 'Thira Sans', 'Thira Sans Fallback', sans-serif;
|
|
4
|
+
* Generated by scripts/fallback-metrics.py. */
|
|
5
|
+
@font-face {
|
|
6
|
+
font-family: 'Thira Sans Fallback';
|
|
7
|
+
font-style: normal;
|
|
8
|
+
font-weight: 100 549;
|
|
9
|
+
src: local('Arial'), local('ArialMT');
|
|
10
|
+
unicode-range: U+0000-0DFF, U+0E80-10FFFF;
|
|
11
|
+
size-adjust: 100.52%;
|
|
12
|
+
ascent-override: 111.91%;
|
|
13
|
+
descent-override: 37.30%;
|
|
14
|
+
line-gap-override: 0.00%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@font-face {
|
|
18
|
+
font-family: 'Thira Sans Fallback';
|
|
19
|
+
font-style: normal;
|
|
20
|
+
font-weight: 550 900;
|
|
21
|
+
src: local('Arial Bold'), local('Arial-BoldMT');
|
|
22
|
+
unicode-range: U+0000-0DFF, U+0E80-10FFFF;
|
|
23
|
+
size-adjust: 98.38%;
|
|
24
|
+
ascent-override: 114.36%;
|
|
25
|
+
descent-override: 38.12%;
|
|
26
|
+
line-gap-override: 0.00%;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@font-face {
|
|
30
|
+
font-family: 'Thira Sans Fallback';
|
|
31
|
+
font-style: normal;
|
|
32
|
+
font-weight: 100 549;
|
|
33
|
+
src: local('Tahoma');
|
|
34
|
+
unicode-range: U+0E00-0E7F;
|
|
35
|
+
size-adjust: 96.05%;
|
|
36
|
+
ascent-override: 117.13%;
|
|
37
|
+
descent-override: 39.04%;
|
|
38
|
+
line-gap-override: 0.00%;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@font-face {
|
|
42
|
+
font-family: 'Thira Sans Fallback';
|
|
43
|
+
font-style: normal;
|
|
44
|
+
font-weight: 550 900;
|
|
45
|
+
src: local('Tahoma Bold'), local('Tahoma-Bold');
|
|
46
|
+
unicode-range: U+0E00-0E7F;
|
|
47
|
+
size-adjust: 92.58%;
|
|
48
|
+
ascent-override: 121.51%;
|
|
49
|
+
descent-override: 40.50%;
|
|
50
|
+
line-gap-override: 0.00%;
|
|
51
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/index.css
CHANGED
|
@@ -6,3 +6,55 @@
|
|
|
6
6
|
font-weight: 100 700;
|
|
7
7
|
src: url('./files/thira-sans-variable.woff2') format('woff2');
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
/* Thira Sans Fallback: Arial (Latin) and Tahoma (Thai) resized to Thira Sans' metrics,
|
|
11
|
+
* so the swap to the webfont barely moves the layout. Put it right after 'Thira Sans':
|
|
12
|
+
* font-family: 'Thira Sans', 'Thira Sans Fallback', sans-serif;
|
|
13
|
+
* Generated by scripts/fallback-metrics.py. */
|
|
14
|
+
@font-face {
|
|
15
|
+
font-family: 'Thira Sans Fallback';
|
|
16
|
+
font-style: normal;
|
|
17
|
+
font-weight: 100 549;
|
|
18
|
+
src: local('Arial'), local('ArialMT');
|
|
19
|
+
unicode-range: U+0000-0DFF, U+0E80-10FFFF;
|
|
20
|
+
size-adjust: 100.52%;
|
|
21
|
+
ascent-override: 111.91%;
|
|
22
|
+
descent-override: 37.30%;
|
|
23
|
+
line-gap-override: 0.00%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@font-face {
|
|
27
|
+
font-family: 'Thira Sans Fallback';
|
|
28
|
+
font-style: normal;
|
|
29
|
+
font-weight: 550 900;
|
|
30
|
+
src: local('Arial Bold'), local('Arial-BoldMT');
|
|
31
|
+
unicode-range: U+0000-0DFF, U+0E80-10FFFF;
|
|
32
|
+
size-adjust: 98.38%;
|
|
33
|
+
ascent-override: 114.36%;
|
|
34
|
+
descent-override: 38.12%;
|
|
35
|
+
line-gap-override: 0.00%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@font-face {
|
|
39
|
+
font-family: 'Thira Sans Fallback';
|
|
40
|
+
font-style: normal;
|
|
41
|
+
font-weight: 100 549;
|
|
42
|
+
src: local('Tahoma');
|
|
43
|
+
unicode-range: U+0E00-0E7F;
|
|
44
|
+
size-adjust: 96.05%;
|
|
45
|
+
ascent-override: 117.13%;
|
|
46
|
+
descent-override: 39.04%;
|
|
47
|
+
line-gap-override: 0.00%;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@font-face {
|
|
51
|
+
font-family: 'Thira Sans Fallback';
|
|
52
|
+
font-style: normal;
|
|
53
|
+
font-weight: 550 900;
|
|
54
|
+
src: local('Tahoma Bold'), local('Tahoma-Bold');
|
|
55
|
+
unicode-range: U+0E00-0E7F;
|
|
56
|
+
size-adjust: 92.58%;
|
|
57
|
+
ascent-override: 121.51%;
|
|
58
|
+
descent-override: 40.50%;
|
|
59
|
+
line-gap-override: 0.00%;
|
|
60
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "thira-sans",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Thira Sans: a Thai + Latin variable sans-serif (weight 100-700) as self-hosted webfonts",
|
|
5
5
|
"license": "OFL-1.1",
|
|
6
6
|
"author": "Thiraphat Phutson",
|
|
@@ -30,6 +30,10 @@
|
|
|
30
30
|
"types": "./index.d.ts",
|
|
31
31
|
"default": "./index.css"
|
|
32
32
|
},
|
|
33
|
+
"./fallback.css": {
|
|
34
|
+
"types": "./index.d.ts",
|
|
35
|
+
"default": "./fallback.css"
|
|
36
|
+
},
|
|
33
37
|
"./100.css": {
|
|
34
38
|
"types": "./index.d.ts",
|
|
35
39
|
"default": "./100.css"
|