@akinon/fonts-jost-variable 1.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @akinon/fonts-jost-variable
2
+
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - Initial release of fonts
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # Jost Variable Font
2
+
3
+ The CSS and web font files to easily self-host the “Jost” variable font.
4
+
5
+ ## Installation
6
+
7
+ ```javascript
8
+ pnpm install @akinon/fonts-jost-variable
9
+ ```
10
+
11
+ Within your app entry file or site component, import it in.
12
+
13
+ ```javascript
14
+ import '@akinon/fonts-jost-variable'; // Defaults to wght axis
15
+ import '@akinon/fonts-jost-variable/wght.css'; // Specify axis
16
+ import '@akinon/fonts-jost-variable/wght-italic.css'; // Specify axis and style
17
+ ```
18
+
19
+ Supported variables:
20
+
21
+ - Weights: `[100,200,300,400,500,600,700,800,900]`
22
+ - Styles: `[italic,normal]`
23
+ - Subsets: `[cyrillic,latin,latin-ext]`
24
+ - Axes: `[wght]`
25
+
26
+ Finally, you can reference the font name in a CSS stylesheet, CSS Module, or CSS-in-JS.
27
+
28
+ ```css
29
+ body {
30
+ font-family: 'Jost Variable';
31
+ }
32
+ ```
package/index.css ADDED
@@ -0,0 +1,32 @@
1
+ /* jost-cyrillic-wght-normal */
2
+ @font-face {
3
+ font-family: 'Jost Variable';
4
+ font-style: normal;
5
+ font-display: swap;
6
+ font-weight: 100 900;
7
+ src: url(./files/jost-cyrillic-wght-normal.woff2) format('woff2-variations');
8
+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
9
+ }
10
+
11
+ /* jost-latin-ext-wght-normal */
12
+ @font-face {
13
+ font-family: 'Jost Variable';
14
+ font-style: normal;
15
+ font-display: swap;
16
+ font-weight: 100 900;
17
+ src: url(./files/jost-latin-ext-wght-normal.woff2) format('woff2-variations');
18
+ unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
19
+ U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
20
+ }
21
+
22
+ /* jost-latin-wght-normal */
23
+ @font-face {
24
+ font-family: 'Jost Variable';
25
+ font-style: normal;
26
+ font-display: swap;
27
+ font-weight: 100 900;
28
+ src: url(./files/jost-latin-wght-normal.woff2) format('woff2-variations');
29
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
30
+ U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
31
+ U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
32
+ }
package/metadata.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "id": "jost",
3
+ "family": "Jost",
4
+ "subsets": ["cyrillic", "latin", "latin-ext"],
5
+ "weights": [100, 200, 300, 400, 500, 600, 700, 800, 900],
6
+ "styles": ["italic", "normal"],
7
+ "defSubset": "latin",
8
+ "variable": {
9
+ "ital": { "default": "0", "min": "0", "max": "1", "step": "1" },
10
+ "wght": { "default": "400", "min": "100", "max": "900", "step": "1" }
11
+ },
12
+ "lastModified": "2023-09-14",
13
+ "version": "v15",
14
+ "category": "sans-serif",
15
+ "license": {
16
+ "type": "OFL-1.1",
17
+ "url": "http://scripts.sil.org/OFL",
18
+ "attribution": "Copyright 2020 The Jost Project Authors (https://github.com/indestructible-type/Jost)"
19
+ },
20
+ "source": "https://github.com/google/fonts",
21
+ "type": "google"
22
+ }
package/package.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "@akinon/fonts-jost-variable",
3
+ "description": "Self-host the Jost font in a neatly bundled NPM package.",
4
+ "version": "1.0.0",
5
+ "main": "index.css",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ }
9
+ }
@@ -0,0 +1,32 @@
1
+ /* jost-cyrillic-wght-italic */
2
+ @font-face {
3
+ font-family: 'Jost Variable';
4
+ font-style: italic;
5
+ font-display: swap;
6
+ font-weight: 100 900;
7
+ src: url(./files/jost-cyrillic-wght-italic.woff2) format('woff2-variations');
8
+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
9
+ }
10
+
11
+ /* jost-latin-ext-wght-italic */
12
+ @font-face {
13
+ font-family: 'Jost Variable';
14
+ font-style: italic;
15
+ font-display: swap;
16
+ font-weight: 100 900;
17
+ src: url(./files/jost-latin-ext-wght-italic.woff2) format('woff2-variations');
18
+ unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
19
+ U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
20
+ }
21
+
22
+ /* jost-latin-wght-italic */
23
+ @font-face {
24
+ font-family: 'Jost Variable';
25
+ font-style: italic;
26
+ font-display: swap;
27
+ font-weight: 100 900;
28
+ src: url(./files/jost-latin-wght-italic.woff2) format('woff2-variations');
29
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
30
+ U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
31
+ U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
32
+ }
package/wght.css ADDED
@@ -0,0 +1,32 @@
1
+ /* jost-cyrillic-wght-normal */
2
+ @font-face {
3
+ font-family: 'Jost Variable';
4
+ font-style: normal;
5
+ font-display: swap;
6
+ font-weight: 100 900;
7
+ src: url(./files/jost-cyrillic-wght-normal.woff2) format('woff2-variations');
8
+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
9
+ }
10
+
11
+ /* jost-latin-ext-wght-normal */
12
+ @font-face {
13
+ font-family: 'Jost Variable';
14
+ font-style: normal;
15
+ font-display: swap;
16
+ font-weight: 100 900;
17
+ src: url(./files/jost-latin-ext-wght-normal.woff2) format('woff2-variations');
18
+ unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
19
+ U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
20
+ }
21
+
22
+ /* jost-latin-wght-normal */
23
+ @font-face {
24
+ font-family: 'Jost Variable';
25
+ font-style: normal;
26
+ font-display: swap;
27
+ font-weight: 100 900;
28
+ src: url(./files/jost-latin-wght-normal.woff2) format('woff2-variations');
29
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
30
+ U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
31
+ U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
32
+ }