@fontsource/koho 4.5.11 → 5.0.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.
Files changed (138) hide show
  1. package/200-italic.css +19 -16
  2. package/200.css +19 -16
  3. package/300-italic.css +19 -16
  4. package/300.css +19 -16
  5. package/400-italic.css +19 -16
  6. package/400.css +19 -16
  7. package/500-italic.css +19 -16
  8. package/500.css +19 -16
  9. package/600-italic.css +19 -16
  10. package/600.css +19 -16
  11. package/700-italic.css +19 -16
  12. package/700.css +19 -16
  13. package/CHANGELOG.md +1 -2
  14. package/LICENSE +93 -0
  15. package/README.md +11 -13
  16. package/files/koho-latin-200-italic.woff +0 -0
  17. package/files/koho-latin-200-normal.woff +0 -0
  18. package/files/koho-latin-300-italic.woff +0 -0
  19. package/files/koho-latin-300-normal.woff +0 -0
  20. package/files/koho-latin-400-italic.woff +0 -0
  21. package/files/koho-latin-400-normal.woff +0 -0
  22. package/files/koho-latin-500-italic.woff +0 -0
  23. package/files/koho-latin-500-normal.woff +0 -0
  24. package/files/koho-latin-600-italic.woff +0 -0
  25. package/files/koho-latin-600-normal.woff +0 -0
  26. package/files/koho-latin-700-italic.woff +0 -0
  27. package/files/koho-latin-700-normal.woff +0 -0
  28. package/files/koho-latin-ext-200-italic.woff +0 -0
  29. package/files/koho-latin-ext-200-normal.woff +0 -0
  30. package/files/koho-latin-ext-300-italic.woff +0 -0
  31. package/files/koho-latin-ext-300-normal.woff +0 -0
  32. package/files/koho-latin-ext-400-italic.woff +0 -0
  33. package/files/koho-latin-ext-400-normal.woff +0 -0
  34. package/files/koho-latin-ext-500-italic.woff +0 -0
  35. package/files/koho-latin-ext-500-normal.woff +0 -0
  36. package/files/koho-latin-ext-600-italic.woff +0 -0
  37. package/files/koho-latin-ext-600-normal.woff +0 -0
  38. package/files/koho-latin-ext-700-italic.woff +0 -0
  39. package/files/koho-latin-ext-700-normal.woff +0 -0
  40. package/files/koho-thai-200-italic.woff +0 -0
  41. package/files/koho-thai-200-normal.woff +0 -0
  42. package/files/koho-thai-300-italic.woff +0 -0
  43. package/files/koho-thai-300-normal.woff +0 -0
  44. package/files/koho-thai-400-italic.woff +0 -0
  45. package/files/koho-thai-400-normal.woff +0 -0
  46. package/files/koho-thai-500-italic.woff +0 -0
  47. package/files/koho-thai-500-normal.woff +0 -0
  48. package/files/koho-thai-600-italic.woff +0 -0
  49. package/files/koho-thai-600-normal.woff +0 -0
  50. package/files/koho-thai-700-italic.woff +0 -0
  51. package/files/koho-thai-700-normal.woff +0 -0
  52. package/files/koho-vietnamese-200-italic.woff +0 -0
  53. package/files/koho-vietnamese-200-normal.woff +0 -0
  54. package/files/koho-vietnamese-300-italic.woff +0 -0
  55. package/files/koho-vietnamese-300-normal.woff +0 -0
  56. package/files/koho-vietnamese-400-italic.woff +0 -0
  57. package/files/koho-vietnamese-400-normal.woff +0 -0
  58. package/files/koho-vietnamese-500-italic.woff +0 -0
  59. package/files/koho-vietnamese-500-normal.woff +0 -0
  60. package/files/koho-vietnamese-600-italic.woff +0 -0
  61. package/files/koho-vietnamese-600-normal.woff +0 -0
  62. package/files/koho-vietnamese-700-italic.woff +0 -0
  63. package/files/koho-vietnamese-700-normal.woff +0 -0
  64. package/index.css +19 -16
  65. package/latin-200-italic.css +4 -5
  66. package/latin-200.css +4 -5
  67. package/latin-300-italic.css +4 -5
  68. package/latin-300.css +4 -5
  69. package/latin-400-italic.css +4 -5
  70. package/latin-400.css +4 -5
  71. package/latin-500-italic.css +4 -5
  72. package/latin-500.css +4 -5
  73. package/latin-600-italic.css +4 -5
  74. package/latin-600.css +4 -5
  75. package/latin-700-italic.css +4 -5
  76. package/latin-700.css +4 -5
  77. package/latin-ext-200-italic.css +4 -5
  78. package/latin-ext-200.css +4 -5
  79. package/latin-ext-300-italic.css +4 -5
  80. package/latin-ext-300.css +4 -5
  81. package/latin-ext-400-italic.css +4 -5
  82. package/latin-ext-400.css +4 -5
  83. package/latin-ext-500-italic.css +4 -5
  84. package/latin-ext-500.css +4 -5
  85. package/latin-ext-600-italic.css +4 -5
  86. package/latin-ext-600.css +4 -5
  87. package/latin-ext-700-italic.css +4 -5
  88. package/latin-ext-700.css +4 -5
  89. package/latin-ext-italic.css +53 -0
  90. package/latin-ext.css +24 -25
  91. package/latin-italic.css +53 -0
  92. package/latin.css +24 -25
  93. package/metadata.json +19 -1
  94. package/package.json +29 -1
  95. package/scss/metadata.scss +19 -0
  96. package/scss/mixins.scss +167 -53
  97. package/thai-200-italic.css +4 -5
  98. package/thai-200.css +4 -5
  99. package/thai-300-italic.css +4 -5
  100. package/thai-300.css +4 -5
  101. package/thai-400-italic.css +4 -5
  102. package/thai-400.css +4 -5
  103. package/thai-500-italic.css +4 -5
  104. package/thai-500.css +4 -5
  105. package/thai-600-italic.css +4 -5
  106. package/thai-600.css +4 -5
  107. package/thai-700-italic.css +4 -5
  108. package/thai-700.css +4 -5
  109. package/thai-italic.css +53 -0
  110. package/thai.css +24 -25
  111. package/unicode.json +6 -1
  112. package/vietnamese-200-italic.css +4 -5
  113. package/vietnamese-200.css +4 -5
  114. package/vietnamese-300-italic.css +4 -5
  115. package/vietnamese-300.css +4 -5
  116. package/vietnamese-400-italic.css +4 -5
  117. package/vietnamese-400.css +4 -5
  118. package/vietnamese-500-italic.css +4 -5
  119. package/vietnamese-500.css +4 -5
  120. package/vietnamese-600-italic.css +4 -5
  121. package/vietnamese-600.css +4 -5
  122. package/vietnamese-700-italic.css +4 -5
  123. package/vietnamese-700.css +4 -5
  124. package/vietnamese-italic.css +53 -0
  125. package/vietnamese.css +24 -25
  126. package/files/file-list.json +0 -1
  127. package/files/koho-all-200-italic.woff +0 -0
  128. package/files/koho-all-200-normal.woff +0 -0
  129. package/files/koho-all-300-italic.woff +0 -0
  130. package/files/koho-all-300-normal.woff +0 -0
  131. package/files/koho-all-400-italic.woff +0 -0
  132. package/files/koho-all-400-normal.woff +0 -0
  133. package/files/koho-all-500-italic.woff +0 -0
  134. package/files/koho-all-500-normal.woff +0 -0
  135. package/files/koho-all-600-italic.woff +0 -0
  136. package/files/koho-all-600-normal.woff +0 -0
  137. package/files/koho-all-700-italic.woff +0 -0
  138. package/files/koho-all-700-normal.woff +0 -0
package/scss/mixins.scss CHANGED
@@ -1,65 +1,179 @@
1
- $fontName: "KoHo";
2
- $fontId: "koho";
3
- $style: normal;
4
- $display: swap;
5
- $weight: 400;
6
- $fontDir: "~@fontsource/#{$fontId}/files";
7
- $unicodeMap: (thai: (U+0E01-0E5B,U+200C-200D,U+25CC), vietnamese: (U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB), latin-ext: (U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF), latin: (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));
1
+ @use 'sass:list';
2
+ @use 'sass:map';
3
+ @use 'sass:math';
4
+ @use 'sass:meta';
5
+ @use 'sass:string';
8
6
 
9
- @mixin fontFace(
10
- $fontName: $fontName,
11
- $fontId: $fontId,
12
- $style: $style,
7
+ @use 'metadata';
8
+
9
+ $metadata: meta.module-variables(metadata) !default;
10
+ $directory: null !default;
11
+
12
+ $family: null !default;
13
+ $display: null !default;
14
+ $displayVar: null !default;
15
+ $formats: null !default;
16
+ $subsets: null !default;
17
+ $weights: null !default;
18
+ $styles: null !default;
19
+ $axes: null !default;
20
+
21
+ @mixin generator(
22
+ $metadata: $metadata,
23
+ $directory: $directory,
24
+ $family: $family,
13
25
  $display: $display,
14
- $weight: $weight,
15
- $fontDir: $fontDir,
16
- $unicodeMap: $unicodeMap
26
+ $displayVar: $displayVar,
27
+ $formats: $formats,
28
+ $subsets: $subsets,
29
+ $weights: $weights,
30
+ $styles: $styles,
31
+ $axes: $axes
17
32
  ) {
18
- @each $subset, $unicodeRangeValues in $unicodeMap {
19
- @font-face {
20
- font-family: "#{$fontName}";
21
- font-style: $style;
22
- font-display: $display;
23
- font-weight: $weight;
24
- src: url("#{$fontDir}/#{$fontId}-#{$subset}-#{$weight}-#{$style}.woff2") format("woff2"),
25
- url("#{$fontDir}/#{$fontId}-all-#{$weight}-#{$style}.woff") format("woff");
26
- unicode-range: $unicodeRangeValues;
33
+ $directory: if(
34
+ $directory,
35
+ $directory,
36
+ '~@fontsource#{if(map.get($metadata, axes), '-variable', '')}/#{map.get($metadata, id)}/files'
37
+ );
38
+
39
+ $family: if(
40
+ $family,
41
+ $family,
42
+ map.get($metadata, family) + if(map.get($metadata, axes), ' Variable', '')
43
+ );
44
+ $display: if($display, $display, swap);
45
+ $displayVar: if($displayVar != null, $displayVar, true);
46
+ $formats: if(not $formats or $formats == all, (woff2, woff), $formats);
47
+ $subsets: if(
48
+ $subsets,
49
+ if($subsets == all, map.get($metadata, subsets), $subsets),
50
+ map.get($metadata, defaults, subset)
51
+ );
52
+ $weights: if(
53
+ $weights,
54
+ if($weights == all, map.get($metadata, weights), $weights),
55
+ map.get($metadata, defaults, weight)
56
+ );
57
+ $styles: if(
58
+ $styles,
59
+ if($styles == all, map.get($metadata, styles), $styles),
60
+ map.get($metadata, defaults, style)
61
+ );
62
+ $axes: if(
63
+ $axes,
64
+ if($axes == all, full, $axes),
65
+ if(map.get($metadata, axes), if(map.has-key($metadata, axes, wght), wght, full), null)
66
+ );
67
+
68
+ @each $subset in $subsets {
69
+ @each $unicodeSubset, $unicodeRange in map.get($metadata, unicode) {
70
+ @if (
71
+ $subset ==
72
+ $unicodeSubset or
73
+ (
74
+ // Is numeric subset
75
+ $subset ==
76
+ map.get($metadata, defaults, subset) and not
77
+ list.index(map.get($metadata, subsets), $unicodeSubset)
78
+ )
79
+ ) {
80
+ @each $weight in if($axes, null, $weights) {
81
+ @each $axis in $axes {
82
+ @each $style in $styles {
83
+ $variant: '#{map.get($metadata, id)}-#{$unicodeSubset}-#{if($axis, $axis, $weight)}-#{$style}';
84
+
85
+ $src: ();
86
+ @each $format in $formats {
87
+ $src: append(
88
+ $src,
89
+ url('#{$directory}/#{$variant}.#{$format}')
90
+ format('#{$format}#{if($axis, '-variations', '')}'),
91
+ comma
92
+ );
93
+ }
94
+
95
+ @content ((
96
+ metadata: $metadata,
97
+ directory: $directory,
98
+ family: $family,
99
+ display: $display,
100
+ displayVar: $displayVar,
101
+ formats: $formats,
102
+ subsets: $subsets,
103
+ weights: $weights,
104
+ styles: $styles,
105
+ axes: $axes,
106
+
107
+ variant: $variant,
108
+ subset: $subset,
109
+ unicodeSubset: $unicodeSubset,
110
+ unicodeRange: $unicodeRange,
111
+ weight: $weight,
112
+ axis: $axis,
113
+ style: $style,
114
+
115
+ font-family: string.quote($family),
116
+ font-style: if(
117
+ ($axis == full or $axis == slnt) and map.has-key($metadata, axes, slnt),
118
+ oblique map.get($metadata, axes, slnt, min) + deg map.get($metadata, axes, slnt, max) + deg,
119
+ $style
120
+ ),
121
+ font-display: if($displayVar, var(--fontsource-display, $display), $display),
122
+ font-weight: if(
123
+ ($axis == full or $axis == wght) and map.has-key($metadata, axes, wght),
124
+ map.get($metadata, axes, wght, min) map.get($metadata, axes, wght, max),
125
+ $weight
126
+ ),
127
+ font-stretch: if(
128
+ ($axis == full or $axis == wdth) and map.has-key($metadata, axes, wdth),
129
+ '#{map.get($metadata, axes, wdth, min)}% #{map.get($metadata, axes, wdth, max)}%',
130
+ null
131
+ ),
132
+ src: $src,
133
+ unicode-range: $unicodeRange,
134
+ ));
135
+ }
136
+ }
137
+ }
138
+ }
27
139
  }
28
140
  }
29
141
  }
30
142
 
31
- $defSubset: "latin";
32
- $unicodeRange: false;
33
- $unicodeRangeValues: (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);
34
-
35
- @mixin fontFaceCustom(
36
- $fontName: $fontName,
37
- $fontId: $fontId,
38
- $style: $style,
143
+ @mixin faces(
144
+ $metadata: $metadata,
145
+ $directory: $directory,
146
+ $family: $family,
39
147
  $display: $display,
40
- $weight: $weight,
41
- $woff2Path: null,
42
- $woffPath: null,
43
- $unicodeRange: $unicodeRange,
44
- $unicodeRangeValues: $unicodeRangeValues
148
+ $displayVar: $displayVar,
149
+ $formats: $formats,
150
+ $subsets: $subsets,
151
+ $weights: $weights,
152
+ $styles: $styles,
153
+ $axes: $axes
45
154
  ) {
46
- @if $woffPath == null {
47
- $woffPath: "#{$fontDir}/#{$fontId}-#{$defSubset}-#{$weight}-#{$style}.woff";
48
- }
49
- @if $woff2Path == null {
50
- $woff2Path: "#{$fontDir}/#{$fontId}-#{$defSubset}-#{$weight}-#{$style}.woff2";
51
- }
52
-
53
- @font-face {
54
- font-family: "#{$fontName}";
55
- font-style: $style;
56
- font-display: $display;
57
- font-weight: $weight;
58
- src: url("#{$woff2Path}") format("woff2"), url("#{$woffPath}") format("woff");
59
- @if $unicodeRange {
60
- unicode-range: $unicodeRangeValues;
155
+ @include generator(
156
+ $metadata: $metadata,
157
+ $directory: $directory,
158
+ $family: $family,
159
+ $display: $display,
160
+ $displayVar: $displayVar,
161
+ $formats: $formats,
162
+ $subsets: $subsets,
163
+ $weights: $weights,
164
+ $styles: $styles,
165
+ $axes: $axes
166
+ )
167
+ using ($props) {
168
+ /* #{map.get($props, variant)} */
169
+ @font-face {
170
+ font-family: map.get($props, font-family);
171
+ font-style: map.get($props, font-style);
172
+ font-display: map.get($props, font-display);
173
+ font-weight: map.get($props, font-weight);
174
+ font-stretch: map.get($props, font-stretch);
175
+ unicode-range: map.get($props, unicode-range);
176
+ src: map.get($props, src);
61
177
  }
62
178
  }
63
179
  }
64
-
65
-
@@ -1,9 +1,8 @@
1
- /* koho-thai-200-italic*/
1
+ /* koho-thai-200-italic */
2
2
  @font-face {
3
3
  font-family: 'KoHo';
4
4
  font-style: italic;
5
- font-display: swap;
5
+ font-display: var(--fontsource-display, swap);
6
6
  font-weight: 200;
7
- src: url('./files/koho-thai-200-italic.woff2') format('woff2'), url('./files/koho-thai-200-italic.woff') format('woff');
8
-
9
- }
7
+ src: url(./files/koho-thai-200-italic.woff2) format('woff2'), url(./files/koho-thai-200-italic.woff) format('woff');
8
+ }
package/thai-200.css CHANGED
@@ -1,9 +1,8 @@
1
- /* koho-thai-200-normal*/
1
+ /* koho-thai-200-normal */
2
2
  @font-face {
3
3
  font-family: 'KoHo';
4
4
  font-style: normal;
5
- font-display: swap;
5
+ font-display: var(--fontsource-display, swap);
6
6
  font-weight: 200;
7
- src: url('./files/koho-thai-200-normal.woff2') format('woff2'), url('./files/koho-thai-200-normal.woff') format('woff');
8
-
9
- }
7
+ src: url(./files/koho-thai-200-normal.woff2) format('woff2'), url(./files/koho-thai-200-normal.woff) format('woff');
8
+ }
@@ -1,9 +1,8 @@
1
- /* koho-thai-300-italic*/
1
+ /* koho-thai-300-italic */
2
2
  @font-face {
3
3
  font-family: 'KoHo';
4
4
  font-style: italic;
5
- font-display: swap;
5
+ font-display: var(--fontsource-display, swap);
6
6
  font-weight: 300;
7
- src: url('./files/koho-thai-300-italic.woff2') format('woff2'), url('./files/koho-thai-300-italic.woff') format('woff');
8
-
9
- }
7
+ src: url(./files/koho-thai-300-italic.woff2) format('woff2'), url(./files/koho-thai-300-italic.woff) format('woff');
8
+ }
package/thai-300.css CHANGED
@@ -1,9 +1,8 @@
1
- /* koho-thai-300-normal*/
1
+ /* koho-thai-300-normal */
2
2
  @font-face {
3
3
  font-family: 'KoHo';
4
4
  font-style: normal;
5
- font-display: swap;
5
+ font-display: var(--fontsource-display, swap);
6
6
  font-weight: 300;
7
- src: url('./files/koho-thai-300-normal.woff2') format('woff2'), url('./files/koho-thai-300-normal.woff') format('woff');
8
-
9
- }
7
+ src: url(./files/koho-thai-300-normal.woff2) format('woff2'), url(./files/koho-thai-300-normal.woff) format('woff');
8
+ }
@@ -1,9 +1,8 @@
1
- /* koho-thai-400-italic*/
1
+ /* koho-thai-400-italic */
2
2
  @font-face {
3
3
  font-family: 'KoHo';
4
4
  font-style: italic;
5
- font-display: swap;
5
+ font-display: var(--fontsource-display, swap);
6
6
  font-weight: 400;
7
- src: url('./files/koho-thai-400-italic.woff2') format('woff2'), url('./files/koho-thai-400-italic.woff') format('woff');
8
-
9
- }
7
+ src: url(./files/koho-thai-400-italic.woff2) format('woff2'), url(./files/koho-thai-400-italic.woff) format('woff');
8
+ }
package/thai-400.css CHANGED
@@ -1,9 +1,8 @@
1
- /* koho-thai-400-normal*/
1
+ /* koho-thai-400-normal */
2
2
  @font-face {
3
3
  font-family: 'KoHo';
4
4
  font-style: normal;
5
- font-display: swap;
5
+ font-display: var(--fontsource-display, swap);
6
6
  font-weight: 400;
7
- src: url('./files/koho-thai-400-normal.woff2') format('woff2'), url('./files/koho-thai-400-normal.woff') format('woff');
8
-
9
- }
7
+ src: url(./files/koho-thai-400-normal.woff2) format('woff2'), url(./files/koho-thai-400-normal.woff) format('woff');
8
+ }
@@ -1,9 +1,8 @@
1
- /* koho-thai-500-italic*/
1
+ /* koho-thai-500-italic */
2
2
  @font-face {
3
3
  font-family: 'KoHo';
4
4
  font-style: italic;
5
- font-display: swap;
5
+ font-display: var(--fontsource-display, swap);
6
6
  font-weight: 500;
7
- src: url('./files/koho-thai-500-italic.woff2') format('woff2'), url('./files/koho-thai-500-italic.woff') format('woff');
8
-
9
- }
7
+ src: url(./files/koho-thai-500-italic.woff2) format('woff2'), url(./files/koho-thai-500-italic.woff) format('woff');
8
+ }
package/thai-500.css CHANGED
@@ -1,9 +1,8 @@
1
- /* koho-thai-500-normal*/
1
+ /* koho-thai-500-normal */
2
2
  @font-face {
3
3
  font-family: 'KoHo';
4
4
  font-style: normal;
5
- font-display: swap;
5
+ font-display: var(--fontsource-display, swap);
6
6
  font-weight: 500;
7
- src: url('./files/koho-thai-500-normal.woff2') format('woff2'), url('./files/koho-thai-500-normal.woff') format('woff');
8
-
9
- }
7
+ src: url(./files/koho-thai-500-normal.woff2) format('woff2'), url(./files/koho-thai-500-normal.woff) format('woff');
8
+ }
@@ -1,9 +1,8 @@
1
- /* koho-thai-600-italic*/
1
+ /* koho-thai-600-italic */
2
2
  @font-face {
3
3
  font-family: 'KoHo';
4
4
  font-style: italic;
5
- font-display: swap;
5
+ font-display: var(--fontsource-display, swap);
6
6
  font-weight: 600;
7
- src: url('./files/koho-thai-600-italic.woff2') format('woff2'), url('./files/koho-thai-600-italic.woff') format('woff');
8
-
9
- }
7
+ src: url(./files/koho-thai-600-italic.woff2) format('woff2'), url(./files/koho-thai-600-italic.woff) format('woff');
8
+ }
package/thai-600.css CHANGED
@@ -1,9 +1,8 @@
1
- /* koho-thai-600-normal*/
1
+ /* koho-thai-600-normal */
2
2
  @font-face {
3
3
  font-family: 'KoHo';
4
4
  font-style: normal;
5
- font-display: swap;
5
+ font-display: var(--fontsource-display, swap);
6
6
  font-weight: 600;
7
- src: url('./files/koho-thai-600-normal.woff2') format('woff2'), url('./files/koho-thai-600-normal.woff') format('woff');
8
-
9
- }
7
+ src: url(./files/koho-thai-600-normal.woff2) format('woff2'), url(./files/koho-thai-600-normal.woff) format('woff');
8
+ }
@@ -1,9 +1,8 @@
1
- /* koho-thai-700-italic*/
1
+ /* koho-thai-700-italic */
2
2
  @font-face {
3
3
  font-family: 'KoHo';
4
4
  font-style: italic;
5
- font-display: swap;
5
+ font-display: var(--fontsource-display, swap);
6
6
  font-weight: 700;
7
- src: url('./files/koho-thai-700-italic.woff2') format('woff2'), url('./files/koho-thai-700-italic.woff') format('woff');
8
-
9
- }
7
+ src: url(./files/koho-thai-700-italic.woff2) format('woff2'), url(./files/koho-thai-700-italic.woff) format('woff');
8
+ }
package/thai-700.css CHANGED
@@ -1,9 +1,8 @@
1
- /* koho-thai-700-normal*/
1
+ /* koho-thai-700-normal */
2
2
  @font-face {
3
3
  font-family: 'KoHo';
4
4
  font-style: normal;
5
- font-display: swap;
5
+ font-display: var(--fontsource-display, swap);
6
6
  font-weight: 700;
7
- src: url('./files/koho-thai-700-normal.woff2') format('woff2'), url('./files/koho-thai-700-normal.woff') format('woff');
8
-
9
- }
7
+ src: url(./files/koho-thai-700-normal.woff2) format('woff2'), url(./files/koho-thai-700-normal.woff) format('woff');
8
+ }
@@ -0,0 +1,53 @@
1
+ /* koho-thai-200-italic */
2
+ @font-face {
3
+ font-family: 'KoHo';
4
+ font-style: italic;
5
+ font-display: var(--fontsource-display, swap);
6
+ font-weight: 200;
7
+ src: url(./files/koho-thai-200-italic.woff2) format('woff2'), url(./files/koho-thai-200-italic.woff) format('woff');
8
+ }
9
+
10
+ /* koho-thai-300-italic */
11
+ @font-face {
12
+ font-family: 'KoHo';
13
+ font-style: italic;
14
+ font-display: var(--fontsource-display, swap);
15
+ font-weight: 300;
16
+ src: url(./files/koho-thai-300-italic.woff2) format('woff2'), url(./files/koho-thai-300-italic.woff) format('woff');
17
+ }
18
+
19
+ /* koho-thai-400-italic */
20
+ @font-face {
21
+ font-family: 'KoHo';
22
+ font-style: italic;
23
+ font-display: var(--fontsource-display, swap);
24
+ font-weight: 400;
25
+ src: url(./files/koho-thai-400-italic.woff2) format('woff2'), url(./files/koho-thai-400-italic.woff) format('woff');
26
+ }
27
+
28
+ /* koho-thai-500-italic */
29
+ @font-face {
30
+ font-family: 'KoHo';
31
+ font-style: italic;
32
+ font-display: var(--fontsource-display, swap);
33
+ font-weight: 500;
34
+ src: url(./files/koho-thai-500-italic.woff2) format('woff2'), url(./files/koho-thai-500-italic.woff) format('woff');
35
+ }
36
+
37
+ /* koho-thai-600-italic */
38
+ @font-face {
39
+ font-family: 'KoHo';
40
+ font-style: italic;
41
+ font-display: var(--fontsource-display, swap);
42
+ font-weight: 600;
43
+ src: url(./files/koho-thai-600-italic.woff2) format('woff2'), url(./files/koho-thai-600-italic.woff) format('woff');
44
+ }
45
+
46
+ /* koho-thai-700-italic */
47
+ @font-face {
48
+ font-family: 'KoHo';
49
+ font-style: italic;
50
+ font-display: var(--fontsource-display, swap);
51
+ font-weight: 700;
52
+ src: url(./files/koho-thai-700-italic.woff2) format('woff2'), url(./files/koho-thai-700-italic.woff) format('woff');
53
+ }
package/thai.css CHANGED
@@ -1,54 +1,53 @@
1
- /* koho-thai-200-normal*/
1
+ /* koho-thai-200-normal */
2
2
  @font-face {
3
3
  font-family: 'KoHo';
4
4
  font-style: normal;
5
- font-display: swap;
5
+ font-display: var(--fontsource-display, swap);
6
6
  font-weight: 200;
7
- src: url('./files/koho-thai-200-normal.woff2') format('woff2'), url('./files/koho-thai-200-normal.woff') format('woff');
8
-
7
+ src: url(./files/koho-thai-200-normal.woff2) format('woff2'), url(./files/koho-thai-200-normal.woff) format('woff');
9
8
  }
10
- /* koho-thai-300-normal*/
9
+
10
+ /* koho-thai-300-normal */
11
11
  @font-face {
12
12
  font-family: 'KoHo';
13
13
  font-style: normal;
14
- font-display: swap;
14
+ font-display: var(--fontsource-display, swap);
15
15
  font-weight: 300;
16
- src: url('./files/koho-thai-300-normal.woff2') format('woff2'), url('./files/koho-thai-300-normal.woff') format('woff');
17
-
16
+ src: url(./files/koho-thai-300-normal.woff2) format('woff2'), url(./files/koho-thai-300-normal.woff) format('woff');
18
17
  }
19
- /* koho-thai-400-normal*/
18
+
19
+ /* koho-thai-400-normal */
20
20
  @font-face {
21
21
  font-family: 'KoHo';
22
22
  font-style: normal;
23
- font-display: swap;
23
+ font-display: var(--fontsource-display, swap);
24
24
  font-weight: 400;
25
- src: url('./files/koho-thai-400-normal.woff2') format('woff2'), url('./files/koho-thai-400-normal.woff') format('woff');
26
-
25
+ src: url(./files/koho-thai-400-normal.woff2) format('woff2'), url(./files/koho-thai-400-normal.woff) format('woff');
27
26
  }
28
- /* koho-thai-500-normal*/
27
+
28
+ /* koho-thai-500-normal */
29
29
  @font-face {
30
30
  font-family: 'KoHo';
31
31
  font-style: normal;
32
- font-display: swap;
32
+ font-display: var(--fontsource-display, swap);
33
33
  font-weight: 500;
34
- src: url('./files/koho-thai-500-normal.woff2') format('woff2'), url('./files/koho-thai-500-normal.woff') format('woff');
35
-
34
+ src: url(./files/koho-thai-500-normal.woff2) format('woff2'), url(./files/koho-thai-500-normal.woff) format('woff');
36
35
  }
37
- /* koho-thai-600-normal*/
36
+
37
+ /* koho-thai-600-normal */
38
38
  @font-face {
39
39
  font-family: 'KoHo';
40
40
  font-style: normal;
41
- font-display: swap;
41
+ font-display: var(--fontsource-display, swap);
42
42
  font-weight: 600;
43
- src: url('./files/koho-thai-600-normal.woff2') format('woff2'), url('./files/koho-thai-600-normal.woff') format('woff');
44
-
43
+ src: url(./files/koho-thai-600-normal.woff2) format('woff2'), url(./files/koho-thai-600-normal.woff) format('woff');
45
44
  }
46
- /* koho-thai-700-normal*/
45
+
46
+ /* koho-thai-700-normal */
47
47
  @font-face {
48
48
  font-family: 'KoHo';
49
49
  font-style: normal;
50
- font-display: swap;
50
+ font-display: var(--fontsource-display, swap);
51
51
  font-weight: 700;
52
- src: url('./files/koho-thai-700-normal.woff2') format('woff2'), url('./files/koho-thai-700-normal.woff') format('woff');
53
-
54
- }
52
+ src: url(./files/koho-thai-700-normal.woff2) format('woff2'), url(./files/koho-thai-700-normal.woff) format('woff');
53
+ }
package/unicode.json CHANGED
@@ -1 +1,6 @@
1
- {"thai":"U+0E01-0E5B,U+200C-200D,U+25CC","vietnamese":"U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB","latin-ext":"U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF","latin":"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"}
1
+ {
2
+ "thai": "U+0E01-0E5B,U+200C-200D,U+25CC",
3
+ "vietnamese": "U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB",
4
+ "latin-ext": "U+0100-02AF,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF",
5
+ "latin": "U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD"
6
+ }
@@ -1,9 +1,8 @@
1
- /* koho-vietnamese-200-italic*/
1
+ /* koho-vietnamese-200-italic */
2
2
  @font-face {
3
3
  font-family: 'KoHo';
4
4
  font-style: italic;
5
- font-display: swap;
5
+ font-display: var(--fontsource-display, swap);
6
6
  font-weight: 200;
7
- src: url('./files/koho-vietnamese-200-italic.woff2') format('woff2'), url('./files/koho-vietnamese-200-italic.woff') format('woff');
8
-
9
- }
7
+ src: url(./files/koho-vietnamese-200-italic.woff2) format('woff2'), url(./files/koho-vietnamese-200-italic.woff) format('woff');
8
+ }
@@ -1,9 +1,8 @@
1
- /* koho-vietnamese-200-normal*/
1
+ /* koho-vietnamese-200-normal */
2
2
  @font-face {
3
3
  font-family: 'KoHo';
4
4
  font-style: normal;
5
- font-display: swap;
5
+ font-display: var(--fontsource-display, swap);
6
6
  font-weight: 200;
7
- src: url('./files/koho-vietnamese-200-normal.woff2') format('woff2'), url('./files/koho-vietnamese-200-normal.woff') format('woff');
8
-
9
- }
7
+ src: url(./files/koho-vietnamese-200-normal.woff2) format('woff2'), url(./files/koho-vietnamese-200-normal.woff) format('woff');
8
+ }
@@ -1,9 +1,8 @@
1
- /* koho-vietnamese-300-italic*/
1
+ /* koho-vietnamese-300-italic */
2
2
  @font-face {
3
3
  font-family: 'KoHo';
4
4
  font-style: italic;
5
- font-display: swap;
5
+ font-display: var(--fontsource-display, swap);
6
6
  font-weight: 300;
7
- src: url('./files/koho-vietnamese-300-italic.woff2') format('woff2'), url('./files/koho-vietnamese-300-italic.woff') format('woff');
8
-
9
- }
7
+ src: url(./files/koho-vietnamese-300-italic.woff2) format('woff2'), url(./files/koho-vietnamese-300-italic.woff) format('woff');
8
+ }
@@ -1,9 +1,8 @@
1
- /* koho-vietnamese-300-normal*/
1
+ /* koho-vietnamese-300-normal */
2
2
  @font-face {
3
3
  font-family: 'KoHo';
4
4
  font-style: normal;
5
- font-display: swap;
5
+ font-display: var(--fontsource-display, swap);
6
6
  font-weight: 300;
7
- src: url('./files/koho-vietnamese-300-normal.woff2') format('woff2'), url('./files/koho-vietnamese-300-normal.woff') format('woff');
8
-
9
- }
7
+ src: url(./files/koho-vietnamese-300-normal.woff2) format('woff2'), url(./files/koho-vietnamese-300-normal.woff) format('woff');
8
+ }
@@ -1,9 +1,8 @@
1
- /* koho-vietnamese-400-italic*/
1
+ /* koho-vietnamese-400-italic */
2
2
  @font-face {
3
3
  font-family: 'KoHo';
4
4
  font-style: italic;
5
- font-display: swap;
5
+ font-display: var(--fontsource-display, swap);
6
6
  font-weight: 400;
7
- src: url('./files/koho-vietnamese-400-italic.woff2') format('woff2'), url('./files/koho-vietnamese-400-italic.woff') format('woff');
8
-
9
- }
7
+ src: url(./files/koho-vietnamese-400-italic.woff2) format('woff2'), url(./files/koho-vietnamese-400-italic.woff) format('woff');
8
+ }
@@ -1,9 +1,8 @@
1
- /* koho-vietnamese-400-normal*/
1
+ /* koho-vietnamese-400-normal */
2
2
  @font-face {
3
3
  font-family: 'KoHo';
4
4
  font-style: normal;
5
- font-display: swap;
5
+ font-display: var(--fontsource-display, swap);
6
6
  font-weight: 400;
7
- src: url('./files/koho-vietnamese-400-normal.woff2') format('woff2'), url('./files/koho-vietnamese-400-normal.woff') format('woff');
8
-
9
- }
7
+ src: url(./files/koho-vietnamese-400-normal.woff2) format('woff2'), url(./files/koho-vietnamese-400-normal.woff) format('woff');
8
+ }