@fontsource/koho 4.5.11 → 5.0.1

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 +10 -12
  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 +30 -1
  95. package/scss/metadata.scss +19 -0
  96. package/scss/mixins.scss +163 -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,175 @@
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
+ $isVariable: map.get($metadata, axes) != null;
34
+
35
+ $directory: if(
36
+ $directory,
37
+ $directory,
38
+ '~@fontsource#{if($isVariable, '-variable', '')}/#{map.get($metadata, id)}/files'
39
+ );
40
+
41
+ $family: if($family, $family, map.get($metadata, family) + if($isVariable, ' Variable', ''));
42
+ $display: if($display, $display, swap);
43
+ $displayVar: if($displayVar != null, $displayVar, true);
44
+ $formats: if(not $formats or $formats == all, if($isVariable, woff2, (woff2, woff)), $formats);
45
+ $subsets: if(
46
+ $subsets,
47
+ if($subsets == all, map.get($metadata, subsets), $subsets),
48
+ map.get($metadata, defaults, subset)
49
+ );
50
+ $weights: if(
51
+ $weights,
52
+ if($weights == all, map.get($metadata, weights), $weights),
53
+ map.get($metadata, defaults, weight)
54
+ );
55
+ $styles: if(
56
+ $styles,
57
+ if($styles == all, map.get($metadata, styles), $styles),
58
+ map.get($metadata, defaults, style)
59
+ );
60
+ $axes: if(
61
+ $axes,
62
+ if($axes == all, full, $axes),
63
+ if($isVariable, if(map.has-key($metadata, axes, wght), wght, full), null)
64
+ );
65
+
66
+ @each $subset in $subsets {
67
+ @each $unicodeSubset, $unicodeRange in map.get($metadata, unicode) {
68
+ @if (
69
+ ($subset == $unicodeSubset) or
70
+ (
71
+ // Is numeric subset
72
+ ($subset == map.get($metadata, defaults, subset)) and not
73
+ list.index(map.get($metadata, subsets), $unicodeSubset)
74
+ )
75
+ ) {
76
+ @each $weight in if($axes, null, $weights) {
77
+ @each $axis in $axes {
78
+ @each $style in $styles {
79
+ $variant: '#{map.get($metadata, id)}-#{if($unicodeSubset, $unicodeSubset, $subset)}-#{if($axis, $axis, $weight)}-#{$style}';
80
+
81
+ $src: ();
82
+ @each $format in $formats {
83
+ $src: append(
84
+ $src,
85
+ url('#{$directory}/#{$variant}.#{$format}')
86
+ format('#{$format}#{if($axis, '-variations', '')}'),
87
+ comma
88
+ );
89
+ }
90
+
91
+ @content ((
92
+ metadata: $metadata,
93
+ directory: $directory,
94
+ family: $family,
95
+ display: $display,
96
+ displayVar: $displayVar,
97
+ formats: $formats,
98
+ subsets: $subsets,
99
+ weights: $weights,
100
+ styles: $styles,
101
+ axes: $axes,
102
+
103
+ variant: $variant,
104
+ subset: $subset,
105
+ unicodeSubset: $unicodeSubset,
106
+ unicodeRange: $unicodeRange,
107
+ weight: $weight,
108
+ axis: $axis,
109
+ style: $style,
110
+
111
+ font-family: string.quote($family),
112
+ font-style: if(
113
+ (($axis == full) or ($axis == slnt)) and map.has-key($metadata, axes, slnt),
114
+ oblique map.get($metadata, axes, slnt, min) + deg map.get($metadata, axes, slnt, max) + deg,
115
+ $style
116
+ ),
117
+ font-display: if($displayVar, var(--fontsource-display, $display), $display),
118
+ font-weight: if(
119
+ (($axis == full) or ($axis == wght)) and map.has-key($metadata, axes, wght),
120
+ map.get($metadata, axes, wght, min) map.get($metadata, axes, wght, max),
121
+ $weight
122
+ ),
123
+ font-stretch: if(
124
+ (($axis == full) or ($axis == wdth)) and map.has-key($metadata, axes, wdth),
125
+ '#{map.get($metadata, axes, wdth, min)}% #{map.get($metadata, axes, wdth, max)}%',
126
+ null
127
+ ),
128
+ src: $src,
129
+ unicode-range: $unicodeRange,
130
+ ));
131
+ }
132
+ }
133
+ }
134
+ }
27
135
  }
28
136
  }
29
137
  }
30
138
 
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,
139
+ @mixin faces(
140
+ $metadata: $metadata,
141
+ $directory: $directory,
142
+ $family: $family,
39
143
  $display: $display,
40
- $weight: $weight,
41
- $woff2Path: null,
42
- $woffPath: null,
43
- $unicodeRange: $unicodeRange,
44
- $unicodeRangeValues: $unicodeRangeValues
144
+ $displayVar: $displayVar,
145
+ $formats: $formats,
146
+ $subsets: $subsets,
147
+ $weights: $weights,
148
+ $styles: $styles,
149
+ $axes: $axes
45
150
  ) {
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;
151
+ @include generator(
152
+ $metadata: $metadata,
153
+ $directory: $directory,
154
+ $family: $family,
155
+ $display: $display,
156
+ $displayVar: $displayVar,
157
+ $formats: $formats,
158
+ $subsets: $subsets,
159
+ $weights: $weights,
160
+ $styles: $styles,
161
+ $axes: $axes
162
+ )
163
+ using ($props) {
164
+ /* #{map.get($props, variant)} */
165
+ @font-face {
166
+ font-family: map.get($props, font-family);
167
+ font-style: map.get($props, font-style);
168
+ font-display: map.get($props, font-display);
169
+ font-weight: map.get($props, font-weight);
170
+ font-stretch: map.get($props, font-stretch);
171
+ unicode-range: map.get($props, unicode-range);
172
+ src: map.get($props, src);
61
173
  }
62
174
  }
63
175
  }
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
+ }