@fontsource/inknut-antiqua 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 (69) hide show
  1. package/300.css +15 -13
  2. package/400.css +15 -13
  3. package/500.css +15 -13
  4. package/600.css +15 -13
  5. package/700.css +15 -13
  6. package/800.css +15 -13
  7. package/900.css +15 -13
  8. package/CHANGELOG.md +1 -2
  9. package/LICENSE +93 -0
  10. package/README.md +10 -12
  11. package/devanagari-300.css +4 -5
  12. package/devanagari-400.css +4 -5
  13. package/devanagari-500.css +4 -5
  14. package/devanagari-600.css +4 -5
  15. package/devanagari-700.css +4 -5
  16. package/devanagari-800.css +4 -5
  17. package/devanagari-900.css +4 -5
  18. package/devanagari.css +28 -29
  19. package/files/inknut-antiqua-devanagari-300-normal.woff +0 -0
  20. package/files/inknut-antiqua-devanagari-400-normal.woff +0 -0
  21. package/files/inknut-antiqua-devanagari-500-normal.woff +0 -0
  22. package/files/inknut-antiqua-devanagari-600-normal.woff +0 -0
  23. package/files/inknut-antiqua-devanagari-700-normal.woff +0 -0
  24. package/files/inknut-antiqua-devanagari-800-normal.woff +0 -0
  25. package/files/inknut-antiqua-devanagari-900-normal.woff +0 -0
  26. package/files/inknut-antiqua-latin-300-normal.woff +0 -0
  27. package/files/inknut-antiqua-latin-400-normal.woff +0 -0
  28. package/files/inknut-antiqua-latin-500-normal.woff +0 -0
  29. package/files/inknut-antiqua-latin-600-normal.woff +0 -0
  30. package/files/inknut-antiqua-latin-700-normal.woff +0 -0
  31. package/files/inknut-antiqua-latin-800-normal.woff +0 -0
  32. package/files/inknut-antiqua-latin-900-normal.woff +0 -0
  33. package/files/inknut-antiqua-latin-ext-300-normal.woff +0 -0
  34. package/files/inknut-antiqua-latin-ext-400-normal.woff +0 -0
  35. package/files/inknut-antiqua-latin-ext-500-normal.woff +0 -0
  36. package/files/inknut-antiqua-latin-ext-600-normal.woff +0 -0
  37. package/files/inknut-antiqua-latin-ext-700-normal.woff +0 -0
  38. package/files/inknut-antiqua-latin-ext-800-normal.woff +0 -0
  39. package/files/inknut-antiqua-latin-ext-900-normal.woff +0 -0
  40. package/index.css +15 -13
  41. package/latin-300.css +4 -5
  42. package/latin-400.css +4 -5
  43. package/latin-500.css +4 -5
  44. package/latin-600.css +4 -5
  45. package/latin-700.css +4 -5
  46. package/latin-800.css +4 -5
  47. package/latin-900.css +4 -5
  48. package/latin-ext-300.css +4 -5
  49. package/latin-ext-400.css +4 -5
  50. package/latin-ext-500.css +4 -5
  51. package/latin-ext-600.css +4 -5
  52. package/latin-ext-700.css +4 -5
  53. package/latin-ext-800.css +4 -5
  54. package/latin-ext-900.css +4 -5
  55. package/latin-ext.css +28 -29
  56. package/latin.css +28 -29
  57. package/metadata.json +19 -1
  58. package/package.json +30 -1
  59. package/scss/metadata.scss +18 -0
  60. package/scss/mixins.scss +163 -53
  61. package/unicode.json +5 -1
  62. package/files/file-list.json +0 -1
  63. package/files/inknut-antiqua-all-300-normal.woff +0 -0
  64. package/files/inknut-antiqua-all-400-normal.woff +0 -0
  65. package/files/inknut-antiqua-all-500-normal.woff +0 -0
  66. package/files/inknut-antiqua-all-600-normal.woff +0 -0
  67. package/files/inknut-antiqua-all-700-normal.woff +0 -0
  68. package/files/inknut-antiqua-all-800-normal.woff +0 -0
  69. package/files/inknut-antiqua-all-900-normal.woff +0 -0
package/package.json CHANGED
@@ -1 +1,30 @@
1
- {"name":"@fontsource/inknut-antiqua","version":"4.5.11","description":"Self-host the Inknut Antiqua font in a neatly bundled NPM package.","main":"index.css","publishConfig":{"access":"public"},"keywords":["fontsource","font","font family","google fonts","Inknut Antiqua","inknut-antiqua"],"author":"Lotus <declininglotus@gmail.com>","license":"MIT","homepage":"https://github.com/fontsource/fontsource/tree/main/fonts/google/inknut-antiqua#readme","repository":{"type":"git","url":"https://github.com/fontsource/fontsource.git","directory":"fonts/google/inknut-antiqua"}}
1
+ {
2
+ "name": "@fontsource/inknut-antiqua",
3
+ "version": "5.0.1",
4
+ "description": "Self-host the Inknut Antiqua font in a neatly bundled NPM package.",
5
+ "main": "index.css",
6
+ "publishConfig": {"access": "public"},
7
+ "keywords": [
8
+ "fontsource",
9
+ "font",
10
+ "font family",
11
+ "google fonts",
12
+ "inknut-antiqua",
13
+ "Inknut Antiqua",
14
+ "css",
15
+ "sass",
16
+ "front-end",
17
+ "web",
18
+ "typeface",
19
+ "variable"
20
+ ],
21
+ "author": "Google Inc.",
22
+ "license": "OFL-1.1",
23
+ "homepage": "https://fontsource.org/fonts/inknut-antiqua",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "https://github.com/fontsource/font-files.git",
27
+ "directory": "fonts/google/inknut-antiqua"
28
+ },
29
+ "publishHash": "0f10802ddd57dacf"
30
+ }
@@ -0,0 +1,18 @@
1
+ $id: 'inknut-antiqua' !default;
2
+ $family: 'Inknut Antiqua' !default;
3
+ $category: serif !default;
4
+ $subsets: (devanagari, latin, latin-ext) !default;
5
+ $weights: (300, 400, 500, 600, 700, 800, 900) !default;
6
+ $styles: (normal) !default;
7
+ $axes: null !default;
8
+ $defaults: (
9
+ subset: latin,
10
+ weight: 400,
11
+ style: normal,
12
+ axis: null,
13
+ ) !default;
14
+ $unicode: (
15
+ devanagari: (U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FF),
16
+ 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),
17
+ 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),
18
+ ) !default;
package/scss/mixins.scss CHANGED
@@ -1,65 +1,175 @@
1
- $fontName: "Inknut Antiqua";
2
- $fontId: "inknut-antiqua";
3
- $style: normal;
4
- $display: swap;
5
- $weight: 400;
6
- $fontDir: "~@fontsource/#{$fontId}/files";
7
- $unicodeMap: (devanagari: (U+0900-097F,U+1CD0-1CF6,U+1CF8-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FB), 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
-
package/unicode.json CHANGED
@@ -1 +1,5 @@
1
- {"devanagari":"U+0900-097F,U+1CD0-1CF6,U+1CF8-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FB","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
+ "devanagari": "U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FF",
3
+ "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",
4
+ "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"
5
+ }
@@ -1 +0,0 @@
1
- ["./fonts/google/inknut-antiqua/files/inknut-antiqua-devanagari-300-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-300-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-ext-300-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-devanagari-400-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-400-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-ext-400-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-devanagari-500-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-500-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-ext-500-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-devanagari-600-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-600-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-ext-600-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-devanagari-700-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-700-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-ext-700-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-devanagari-800-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-800-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-ext-800-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-devanagari-900-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-900-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-ext-900-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-devanagari-300-normal.woff2","./fonts/google/inknut-antiqua/files/inknut-antiqua-all-300-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-ext-300-normal.woff2","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-300-normal.woff2","./fonts/google/inknut-antiqua/files/inknut-antiqua-devanagari-400-normal.woff2","./fonts/google/inknut-antiqua/files/inknut-antiqua-all-400-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-ext-400-normal.woff2","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-400-normal.woff2","./fonts/google/inknut-antiqua/files/inknut-antiqua-devanagari-500-normal.woff2","./fonts/google/inknut-antiqua/files/inknut-antiqua-all-500-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-ext-500-normal.woff2","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-500-normal.woff2","./fonts/google/inknut-antiqua/files/inknut-antiqua-devanagari-600-normal.woff2","./fonts/google/inknut-antiqua/files/inknut-antiqua-all-600-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-ext-600-normal.woff2","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-600-normal.woff2","./fonts/google/inknut-antiqua/files/inknut-antiqua-devanagari-700-normal.woff2","./fonts/google/inknut-antiqua/files/inknut-antiqua-all-700-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-ext-700-normal.woff2","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-700-normal.woff2","./fonts/google/inknut-antiqua/files/inknut-antiqua-devanagari-800-normal.woff2","./fonts/google/inknut-antiqua/files/inknut-antiqua-all-800-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-ext-800-normal.woff2","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-800-normal.woff2","./fonts/google/inknut-antiqua/files/inknut-antiqua-devanagari-900-normal.woff2","./fonts/google/inknut-antiqua/files/inknut-antiqua-all-900-normal.woff","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-ext-900-normal.woff2","./fonts/google/inknut-antiqua/files/inknut-antiqua-latin-900-normal.woff2"]