@remotion/google-fonts 4.0.384 → 4.0.385
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/dist/cjs/Amarna.d.ts +96 -0
- package/dist/cjs/Amarna.js +83 -0
- package/dist/cjs/BBHBartle.d.ts +36 -0
- package/dist/cjs/BBHBartle.js +27 -0
- package/dist/cjs/BBHBogle.d.ts +36 -0
- package/dist/cjs/BBHBogle.js +27 -0
- package/dist/cjs/BBHHegarty.d.ts +36 -0
- package/dist/cjs/BBHHegarty.js +27 -0
- package/dist/cjs/Borel.js +6 -6
- package/dist/cjs/Cause.d.ts +70 -0
- package/dist/cjs/Cause.js +61 -0
- package/dist/cjs/ElmsSans.js +55 -55
- package/dist/cjs/Geom.d.ts +111 -0
- package/dist/cjs/Geom.js +98 -0
- package/dist/cjs/GoogleSans.d.ts +279 -0
- package/dist/cjs/GoogleSans.js +292 -0
- package/dist/cjs/Iansui.js +110 -110
- package/dist/cjs/Lilex.d.ts +171 -0
- package/dist/cjs/Lilex.js +166 -0
- package/dist/cjs/NotoSansRejang.js +4 -4
- package/dist/cjs/NotoSerifTC.js +841 -841
- package/dist/cjs/Sekuya.d.ts +38 -0
- package/dist/cjs/Sekuya.js +29 -0
- package/dist/cjs/index.js +45 -0
- package/dist/esm/Amarna.mjs +191 -0
- package/dist/esm/BBHBartle.mjs +135 -0
- package/dist/esm/BBHBogle.mjs +135 -0
- package/dist/esm/BBHHegarty.mjs +135 -0
- package/dist/esm/Borel.mjs +6 -6
- package/dist/esm/Cause.mjs +169 -0
- package/dist/esm/ElmsSans.mjs +55 -55
- package/dist/esm/Geom.mjs +206 -0
- package/dist/esm/GoogleSans.mjs +400 -0
- package/dist/esm/Iansui.mjs +110 -110
- package/dist/esm/Lilex.mjs +274 -0
- package/dist/esm/NotoSansRejang.mjs +4 -4
- package/dist/esm/NotoSerifTC.mjs +841 -841
- package/dist/esm/Sekuya.mjs +137 -0
- package/dist/esm/index.mjs +45 -0
- package/package.json +32 -5
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
// src/base.ts
|
|
2
|
+
import { continueRender, delayRender } from "remotion";
|
|
3
|
+
import { NoReactInternals } from "remotion/no-react";
|
|
4
|
+
var loadedFonts = {};
|
|
5
|
+
var withResolvers = function() {
|
|
6
|
+
let resolve;
|
|
7
|
+
let reject;
|
|
8
|
+
const promise = new Promise((res, rej) => {
|
|
9
|
+
resolve = res;
|
|
10
|
+
reject = rej;
|
|
11
|
+
});
|
|
12
|
+
return { promise, resolve, reject };
|
|
13
|
+
};
|
|
14
|
+
var loadFontFaceOrTimeoutAfter20Seconds = (fontFace) => {
|
|
15
|
+
const timeout = withResolvers();
|
|
16
|
+
const int = setTimeout(() => {
|
|
17
|
+
timeout.reject(new Error("Timed out loading Google Font"));
|
|
18
|
+
}, 18000);
|
|
19
|
+
return Promise.race([
|
|
20
|
+
fontFace.load().then(() => {
|
|
21
|
+
clearTimeout(int);
|
|
22
|
+
}),
|
|
23
|
+
timeout.promise
|
|
24
|
+
]);
|
|
25
|
+
};
|
|
26
|
+
var loadFonts = (meta, style, options) => {
|
|
27
|
+
const weightsAndSubsetsAreSpecified = Array.isArray(options?.weights) && Array.isArray(options?.subsets) && options.weights.length > 0 && options.subsets.length > 0;
|
|
28
|
+
if (NoReactInternals.ENABLE_V5_BREAKING_CHANGES && !weightsAndSubsetsAreSpecified) {
|
|
29
|
+
throw new Error("Loading Google Fonts without specifying weights and subsets is not supported in Remotion v5. Please specify the weights and subsets you need.");
|
|
30
|
+
}
|
|
31
|
+
const promises = [];
|
|
32
|
+
const styles = style ? [style] : Object.keys(meta.fonts);
|
|
33
|
+
let fontsLoaded = 0;
|
|
34
|
+
for (const style2 of styles) {
|
|
35
|
+
if (typeof FontFace === "undefined") {
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
if (!meta.fonts[style2]) {
|
|
39
|
+
throw new Error(`The font ${meta.fontFamily} does not have a style ${style2}`);
|
|
40
|
+
}
|
|
41
|
+
const weights = options?.weights ?? Object.keys(meta.fonts[style2]);
|
|
42
|
+
for (const weight of weights) {
|
|
43
|
+
if (!meta.fonts[style2][weight]) {
|
|
44
|
+
throw new Error(`The font ${meta.fontFamily} does not have a weight ${weight} in style ${style2}`);
|
|
45
|
+
}
|
|
46
|
+
const subsets = options?.subsets ?? Object.keys(meta.fonts[style2][weight]);
|
|
47
|
+
for (const subset of subsets) {
|
|
48
|
+
let font = meta.fonts[style2]?.[weight]?.[subset];
|
|
49
|
+
if (!font) {
|
|
50
|
+
throw new Error(`weight: ${weight} subset: ${subset} is not available for '${meta.fontFamily}'`);
|
|
51
|
+
}
|
|
52
|
+
let fontKey = `${meta.fontFamily}-${style2}-${weight}-${subset}`;
|
|
53
|
+
const previousPromise = loadedFonts[fontKey];
|
|
54
|
+
if (previousPromise) {
|
|
55
|
+
promises.push(previousPromise);
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
const baseLabel = `Fetching ${meta.fontFamily} font ${JSON.stringify({
|
|
59
|
+
style: style2,
|
|
60
|
+
weight,
|
|
61
|
+
subset
|
|
62
|
+
})}`;
|
|
63
|
+
const label = weightsAndSubsetsAreSpecified ? baseLabel : `${baseLabel}. This might be caused by loading too many font variations. Read more: https://www.remotion.dev/docs/troubleshooting/font-loading-errors#render-timeout-when-loading-google-fonts`;
|
|
64
|
+
const handle = delayRender(label, { timeoutInMilliseconds: 60000 });
|
|
65
|
+
fontsLoaded++;
|
|
66
|
+
const fontFace = new FontFace(meta.fontFamily, `url(${font}) format('woff2')`, {
|
|
67
|
+
weight,
|
|
68
|
+
style: style2,
|
|
69
|
+
unicodeRange: meta.unicodeRanges[subset]
|
|
70
|
+
});
|
|
71
|
+
let attempts = 2;
|
|
72
|
+
const tryToLoad = () => {
|
|
73
|
+
if (fontFace.status === "loaded") {
|
|
74
|
+
continueRender(handle);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
const promise = loadFontFaceOrTimeoutAfter20Seconds(fontFace).then(() => {
|
|
78
|
+
(options?.document ?? document).fonts.add(fontFace);
|
|
79
|
+
continueRender(handle);
|
|
80
|
+
}).catch((err) => {
|
|
81
|
+
loadedFonts[fontKey] = undefined;
|
|
82
|
+
if (attempts === 0) {
|
|
83
|
+
throw err;
|
|
84
|
+
} else {
|
|
85
|
+
attempts--;
|
|
86
|
+
tryToLoad();
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
loadedFonts[fontKey] = promise;
|
|
90
|
+
promises.push(promise);
|
|
91
|
+
};
|
|
92
|
+
tryToLoad();
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
if (fontsLoaded > 20) {
|
|
96
|
+
console.warn(`Made ${fontsLoaded} network requests to load fonts for ${meta.fontFamily}. Consider loading fewer weights and subsets by passing options to loadFont(). Disable this warning by passing "ignoreTooManyRequestsWarning: true" to "options".`);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
fontFamily: meta.fontFamily,
|
|
101
|
+
fonts: meta.fonts,
|
|
102
|
+
unicodeRanges: meta.unicodeRanges,
|
|
103
|
+
waitUntilDone: () => Promise.all(promises).then(() => {
|
|
104
|
+
return;
|
|
105
|
+
})
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
// src/BBHHegarty.ts
|
|
110
|
+
var getInfo = () => ({
|
|
111
|
+
fontFamily: "BBH Hegarty",
|
|
112
|
+
importName: "BBHHegarty",
|
|
113
|
+
version: "v1",
|
|
114
|
+
url: "https://fonts.googleapis.com/css2?family=BBH+Hegarty:ital,wght@0,400",
|
|
115
|
+
unicodeRanges: {
|
|
116
|
+
latin: "U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"
|
|
117
|
+
},
|
|
118
|
+
fonts: {
|
|
119
|
+
normal: {
|
|
120
|
+
"400": {
|
|
121
|
+
latin: "https://fonts.gstatic.com/s/bbhhegarty/v1/yYLt0hbb_dvjg8talgb5vAHW8NY.woff2"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
subsets: ["latin"]
|
|
126
|
+
});
|
|
127
|
+
var fontFamily = "BBH Hegarty";
|
|
128
|
+
var loadFont = (style, options) => {
|
|
129
|
+
return loadFonts(getInfo(), style, options);
|
|
130
|
+
};
|
|
131
|
+
export {
|
|
132
|
+
loadFont,
|
|
133
|
+
getInfo,
|
|
134
|
+
fontFamily
|
|
135
|
+
};
|
package/dist/esm/Borel.mjs
CHANGED
|
@@ -110,7 +110,7 @@ var loadFonts = (meta, style, options) => {
|
|
|
110
110
|
var getInfo = () => ({
|
|
111
111
|
fontFamily: "Borel",
|
|
112
112
|
importName: "Borel",
|
|
113
|
-
version: "
|
|
113
|
+
version: "v10",
|
|
114
114
|
url: "https://fonts.googleapis.com/css2?family=Borel:ital,wght@0,400",
|
|
115
115
|
unicodeRanges: {
|
|
116
116
|
math: "U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-208E, U+2090-209C, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF",
|
|
@@ -122,11 +122,11 @@ var getInfo = () => ({
|
|
|
122
122
|
fonts: {
|
|
123
123
|
normal: {
|
|
124
124
|
"400": {
|
|
125
|
-
math: "https://fonts.gstatic.com/s/borel/
|
|
126
|
-
symbols: "https://fonts.gstatic.com/s/borel/
|
|
127
|
-
vietnamese: "https://fonts.gstatic.com/s/borel/
|
|
128
|
-
"latin-ext": "https://fonts.gstatic.com/s/borel/
|
|
129
|
-
latin: "https://fonts.gstatic.com/s/borel/
|
|
125
|
+
math: "https://fonts.gstatic.com/s/borel/v10/6qLOKZsftAPisjtaaSIXOg.woff2",
|
|
126
|
+
symbols: "https://fonts.gstatic.com/s/borel/v10/6qLOKZsftAPisjtIaSIXOg.woff2",
|
|
127
|
+
vietnamese: "https://fonts.gstatic.com/s/borel/v10/6qLOKZsftAPisjspaSIXOg.woff2",
|
|
128
|
+
"latin-ext": "https://fonts.gstatic.com/s/borel/v10/6qLOKZsftAPisjsoaSIXOg.woff2",
|
|
129
|
+
latin: "https://fonts.gstatic.com/s/borel/v10/6qLOKZsftAPisjsmaSI.woff2"
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
},
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
// src/base.ts
|
|
2
|
+
import { continueRender, delayRender } from "remotion";
|
|
3
|
+
import { NoReactInternals } from "remotion/no-react";
|
|
4
|
+
var loadedFonts = {};
|
|
5
|
+
var withResolvers = function() {
|
|
6
|
+
let resolve;
|
|
7
|
+
let reject;
|
|
8
|
+
const promise = new Promise((res, rej) => {
|
|
9
|
+
resolve = res;
|
|
10
|
+
reject = rej;
|
|
11
|
+
});
|
|
12
|
+
return { promise, resolve, reject };
|
|
13
|
+
};
|
|
14
|
+
var loadFontFaceOrTimeoutAfter20Seconds = (fontFace) => {
|
|
15
|
+
const timeout = withResolvers();
|
|
16
|
+
const int = setTimeout(() => {
|
|
17
|
+
timeout.reject(new Error("Timed out loading Google Font"));
|
|
18
|
+
}, 18000);
|
|
19
|
+
return Promise.race([
|
|
20
|
+
fontFace.load().then(() => {
|
|
21
|
+
clearTimeout(int);
|
|
22
|
+
}),
|
|
23
|
+
timeout.promise
|
|
24
|
+
]);
|
|
25
|
+
};
|
|
26
|
+
var loadFonts = (meta, style, options) => {
|
|
27
|
+
const weightsAndSubsetsAreSpecified = Array.isArray(options?.weights) && Array.isArray(options?.subsets) && options.weights.length > 0 && options.subsets.length > 0;
|
|
28
|
+
if (NoReactInternals.ENABLE_V5_BREAKING_CHANGES && !weightsAndSubsetsAreSpecified) {
|
|
29
|
+
throw new Error("Loading Google Fonts without specifying weights and subsets is not supported in Remotion v5. Please specify the weights and subsets you need.");
|
|
30
|
+
}
|
|
31
|
+
const promises = [];
|
|
32
|
+
const styles = style ? [style] : Object.keys(meta.fonts);
|
|
33
|
+
let fontsLoaded = 0;
|
|
34
|
+
for (const style2 of styles) {
|
|
35
|
+
if (typeof FontFace === "undefined") {
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
if (!meta.fonts[style2]) {
|
|
39
|
+
throw new Error(`The font ${meta.fontFamily} does not have a style ${style2}`);
|
|
40
|
+
}
|
|
41
|
+
const weights = options?.weights ?? Object.keys(meta.fonts[style2]);
|
|
42
|
+
for (const weight of weights) {
|
|
43
|
+
if (!meta.fonts[style2][weight]) {
|
|
44
|
+
throw new Error(`The font ${meta.fontFamily} does not have a weight ${weight} in style ${style2}`);
|
|
45
|
+
}
|
|
46
|
+
const subsets = options?.subsets ?? Object.keys(meta.fonts[style2][weight]);
|
|
47
|
+
for (const subset of subsets) {
|
|
48
|
+
let font = meta.fonts[style2]?.[weight]?.[subset];
|
|
49
|
+
if (!font) {
|
|
50
|
+
throw new Error(`weight: ${weight} subset: ${subset} is not available for '${meta.fontFamily}'`);
|
|
51
|
+
}
|
|
52
|
+
let fontKey = `${meta.fontFamily}-${style2}-${weight}-${subset}`;
|
|
53
|
+
const previousPromise = loadedFonts[fontKey];
|
|
54
|
+
if (previousPromise) {
|
|
55
|
+
promises.push(previousPromise);
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
const baseLabel = `Fetching ${meta.fontFamily} font ${JSON.stringify({
|
|
59
|
+
style: style2,
|
|
60
|
+
weight,
|
|
61
|
+
subset
|
|
62
|
+
})}`;
|
|
63
|
+
const label = weightsAndSubsetsAreSpecified ? baseLabel : `${baseLabel}. This might be caused by loading too many font variations. Read more: https://www.remotion.dev/docs/troubleshooting/font-loading-errors#render-timeout-when-loading-google-fonts`;
|
|
64
|
+
const handle = delayRender(label, { timeoutInMilliseconds: 60000 });
|
|
65
|
+
fontsLoaded++;
|
|
66
|
+
const fontFace = new FontFace(meta.fontFamily, `url(${font}) format('woff2')`, {
|
|
67
|
+
weight,
|
|
68
|
+
style: style2,
|
|
69
|
+
unicodeRange: meta.unicodeRanges[subset]
|
|
70
|
+
});
|
|
71
|
+
let attempts = 2;
|
|
72
|
+
const tryToLoad = () => {
|
|
73
|
+
if (fontFace.status === "loaded") {
|
|
74
|
+
continueRender(handle);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
const promise = loadFontFaceOrTimeoutAfter20Seconds(fontFace).then(() => {
|
|
78
|
+
(options?.document ?? document).fonts.add(fontFace);
|
|
79
|
+
continueRender(handle);
|
|
80
|
+
}).catch((err) => {
|
|
81
|
+
loadedFonts[fontKey] = undefined;
|
|
82
|
+
if (attempts === 0) {
|
|
83
|
+
throw err;
|
|
84
|
+
} else {
|
|
85
|
+
attempts--;
|
|
86
|
+
tryToLoad();
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
loadedFonts[fontKey] = promise;
|
|
90
|
+
promises.push(promise);
|
|
91
|
+
};
|
|
92
|
+
tryToLoad();
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
if (fontsLoaded > 20) {
|
|
96
|
+
console.warn(`Made ${fontsLoaded} network requests to load fonts for ${meta.fontFamily}. Consider loading fewer weights and subsets by passing options to loadFont(). Disable this warning by passing "ignoreTooManyRequestsWarning: true" to "options".`);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
fontFamily: meta.fontFamily,
|
|
101
|
+
fonts: meta.fonts,
|
|
102
|
+
unicodeRanges: meta.unicodeRanges,
|
|
103
|
+
waitUntilDone: () => Promise.all(promises).then(() => {
|
|
104
|
+
return;
|
|
105
|
+
})
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
// src/Cause.ts
|
|
110
|
+
var getInfo = () => ({
|
|
111
|
+
fontFamily: "Cause",
|
|
112
|
+
importName: "Cause",
|
|
113
|
+
version: "v1",
|
|
114
|
+
url: "https://fonts.googleapis.com/css2?family=Cause:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900",
|
|
115
|
+
unicodeRanges: {
|
|
116
|
+
"latin-ext": "U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF",
|
|
117
|
+
latin: "U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"
|
|
118
|
+
},
|
|
119
|
+
fonts: {
|
|
120
|
+
normal: {
|
|
121
|
+
"100": {
|
|
122
|
+
"latin-ext": "https://fonts.gstatic.com/s/cause/v1/or3sQ6760-mf03NdbJHPBw.woff2",
|
|
123
|
+
latin: "https://fonts.gstatic.com/s/cause/v1/or3sQ6760-mf03NTbJE.woff2"
|
|
124
|
+
},
|
|
125
|
+
"200": {
|
|
126
|
+
"latin-ext": "https://fonts.gstatic.com/s/cause/v1/or3sQ6760-mf03NdbJHPBw.woff2",
|
|
127
|
+
latin: "https://fonts.gstatic.com/s/cause/v1/or3sQ6760-mf03NTbJE.woff2"
|
|
128
|
+
},
|
|
129
|
+
"300": {
|
|
130
|
+
"latin-ext": "https://fonts.gstatic.com/s/cause/v1/or3sQ6760-mf03NdbJHPBw.woff2",
|
|
131
|
+
latin: "https://fonts.gstatic.com/s/cause/v1/or3sQ6760-mf03NTbJE.woff2"
|
|
132
|
+
},
|
|
133
|
+
"400": {
|
|
134
|
+
"latin-ext": "https://fonts.gstatic.com/s/cause/v1/or3sQ6760-mf03NdbJHPBw.woff2",
|
|
135
|
+
latin: "https://fonts.gstatic.com/s/cause/v1/or3sQ6760-mf03NTbJE.woff2"
|
|
136
|
+
},
|
|
137
|
+
"500": {
|
|
138
|
+
"latin-ext": "https://fonts.gstatic.com/s/cause/v1/or3sQ6760-mf03NdbJHPBw.woff2",
|
|
139
|
+
latin: "https://fonts.gstatic.com/s/cause/v1/or3sQ6760-mf03NTbJE.woff2"
|
|
140
|
+
},
|
|
141
|
+
"600": {
|
|
142
|
+
"latin-ext": "https://fonts.gstatic.com/s/cause/v1/or3sQ6760-mf03NdbJHPBw.woff2",
|
|
143
|
+
latin: "https://fonts.gstatic.com/s/cause/v1/or3sQ6760-mf03NTbJE.woff2"
|
|
144
|
+
},
|
|
145
|
+
"700": {
|
|
146
|
+
"latin-ext": "https://fonts.gstatic.com/s/cause/v1/or3sQ6760-mf03NdbJHPBw.woff2",
|
|
147
|
+
latin: "https://fonts.gstatic.com/s/cause/v1/or3sQ6760-mf03NTbJE.woff2"
|
|
148
|
+
},
|
|
149
|
+
"800": {
|
|
150
|
+
"latin-ext": "https://fonts.gstatic.com/s/cause/v1/or3sQ6760-mf03NdbJHPBw.woff2",
|
|
151
|
+
latin: "https://fonts.gstatic.com/s/cause/v1/or3sQ6760-mf03NTbJE.woff2"
|
|
152
|
+
},
|
|
153
|
+
"900": {
|
|
154
|
+
"latin-ext": "https://fonts.gstatic.com/s/cause/v1/or3sQ6760-mf03NdbJHPBw.woff2",
|
|
155
|
+
latin: "https://fonts.gstatic.com/s/cause/v1/or3sQ6760-mf03NTbJE.woff2"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
subsets: ["latin", "latin-ext"]
|
|
160
|
+
});
|
|
161
|
+
var fontFamily = "Cause";
|
|
162
|
+
var loadFont = (style, options) => {
|
|
163
|
+
return loadFonts(getInfo(), style, options);
|
|
164
|
+
};
|
|
165
|
+
export {
|
|
166
|
+
loadFont,
|
|
167
|
+
getInfo,
|
|
168
|
+
fontFamily
|
|
169
|
+
};
|
package/dist/esm/ElmsSans.mjs
CHANGED
|
@@ -110,7 +110,7 @@ var loadFonts = (meta, style, options) => {
|
|
|
110
110
|
var getInfo = () => ({
|
|
111
111
|
fontFamily: "Elms Sans",
|
|
112
112
|
importName: "ElmsSans",
|
|
113
|
-
version: "
|
|
113
|
+
version: "v7",
|
|
114
114
|
url: "https://fonts.googleapis.com/css2?family=Elms+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900",
|
|
115
115
|
unicodeRanges: {
|
|
116
116
|
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",
|
|
@@ -120,96 +120,96 @@ var getInfo = () => ({
|
|
|
120
120
|
fonts: {
|
|
121
121
|
italic: {
|
|
122
122
|
"100": {
|
|
123
|
-
vietnamese: "https://fonts.gstatic.com/s/elmssans/
|
|
124
|
-
"latin-ext": "https://fonts.gstatic.com/s/elmssans/
|
|
125
|
-
latin: "https://fonts.gstatic.com/s/elmssans/
|
|
123
|
+
vietnamese: "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRUoYFoCQ.woff2",
|
|
124
|
+
"latin-ext": "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRVoYFoCQ.woff2",
|
|
125
|
+
latin: "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRboYE.woff2"
|
|
126
126
|
},
|
|
127
127
|
"200": {
|
|
128
|
-
vietnamese: "https://fonts.gstatic.com/s/elmssans/
|
|
129
|
-
"latin-ext": "https://fonts.gstatic.com/s/elmssans/
|
|
130
|
-
latin: "https://fonts.gstatic.com/s/elmssans/
|
|
128
|
+
vietnamese: "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRUoYFoCQ.woff2",
|
|
129
|
+
"latin-ext": "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRVoYFoCQ.woff2",
|
|
130
|
+
latin: "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRboYE.woff2"
|
|
131
131
|
},
|
|
132
132
|
"300": {
|
|
133
|
-
vietnamese: "https://fonts.gstatic.com/s/elmssans/
|
|
134
|
-
"latin-ext": "https://fonts.gstatic.com/s/elmssans/
|
|
135
|
-
latin: "https://fonts.gstatic.com/s/elmssans/
|
|
133
|
+
vietnamese: "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRUoYFoCQ.woff2",
|
|
134
|
+
"latin-ext": "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRVoYFoCQ.woff2",
|
|
135
|
+
latin: "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRboYE.woff2"
|
|
136
136
|
},
|
|
137
137
|
"400": {
|
|
138
|
-
vietnamese: "https://fonts.gstatic.com/s/elmssans/
|
|
139
|
-
"latin-ext": "https://fonts.gstatic.com/s/elmssans/
|
|
140
|
-
latin: "https://fonts.gstatic.com/s/elmssans/
|
|
138
|
+
vietnamese: "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRUoYFoCQ.woff2",
|
|
139
|
+
"latin-ext": "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRVoYFoCQ.woff2",
|
|
140
|
+
latin: "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRboYE.woff2"
|
|
141
141
|
},
|
|
142
142
|
"500": {
|
|
143
|
-
vietnamese: "https://fonts.gstatic.com/s/elmssans/
|
|
144
|
-
"latin-ext": "https://fonts.gstatic.com/s/elmssans/
|
|
145
|
-
latin: "https://fonts.gstatic.com/s/elmssans/
|
|
143
|
+
vietnamese: "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRUoYFoCQ.woff2",
|
|
144
|
+
"latin-ext": "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRVoYFoCQ.woff2",
|
|
145
|
+
latin: "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRboYE.woff2"
|
|
146
146
|
},
|
|
147
147
|
"600": {
|
|
148
|
-
vietnamese: "https://fonts.gstatic.com/s/elmssans/
|
|
149
|
-
"latin-ext": "https://fonts.gstatic.com/s/elmssans/
|
|
150
|
-
latin: "https://fonts.gstatic.com/s/elmssans/
|
|
148
|
+
vietnamese: "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRUoYFoCQ.woff2",
|
|
149
|
+
"latin-ext": "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRVoYFoCQ.woff2",
|
|
150
|
+
latin: "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRboYE.woff2"
|
|
151
151
|
},
|
|
152
152
|
"700": {
|
|
153
|
-
vietnamese: "https://fonts.gstatic.com/s/elmssans/
|
|
154
|
-
"latin-ext": "https://fonts.gstatic.com/s/elmssans/
|
|
155
|
-
latin: "https://fonts.gstatic.com/s/elmssans/
|
|
153
|
+
vietnamese: "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRUoYFoCQ.woff2",
|
|
154
|
+
"latin-ext": "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRVoYFoCQ.woff2",
|
|
155
|
+
latin: "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRboYE.woff2"
|
|
156
156
|
},
|
|
157
157
|
"800": {
|
|
158
|
-
vietnamese: "https://fonts.gstatic.com/s/elmssans/
|
|
159
|
-
"latin-ext": "https://fonts.gstatic.com/s/elmssans/
|
|
160
|
-
latin: "https://fonts.gstatic.com/s/elmssans/
|
|
158
|
+
vietnamese: "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRUoYFoCQ.woff2",
|
|
159
|
+
"latin-ext": "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRVoYFoCQ.woff2",
|
|
160
|
+
latin: "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRboYE.woff2"
|
|
161
161
|
},
|
|
162
162
|
"900": {
|
|
163
|
-
vietnamese: "https://fonts.gstatic.com/s/elmssans/
|
|
164
|
-
"latin-ext": "https://fonts.gstatic.com/s/elmssans/
|
|
165
|
-
latin: "https://fonts.gstatic.com/s/elmssans/
|
|
163
|
+
vietnamese: "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRUoYFoCQ.woff2",
|
|
164
|
+
"latin-ext": "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRVoYFoCQ.woff2",
|
|
165
|
+
latin: "https://fonts.gstatic.com/s/elmssans/v7/q5uDsoS_Lf9xv7Su1Fp4AQRboYE.woff2"
|
|
166
166
|
}
|
|
167
167
|
},
|
|
168
168
|
normal: {
|
|
169
169
|
"100": {
|
|
170
|
-
vietnamese: "https://fonts.gstatic.com/s/elmssans/
|
|
171
|
-
"latin-ext": "https://fonts.gstatic.com/s/elmssans/
|
|
172
|
-
latin: "https://fonts.gstatic.com/s/elmssans/
|
|
170
|
+
vietnamese: "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4CzRZuYU.woff2",
|
|
171
|
+
"latin-ext": "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4CjRZuYU.woff2",
|
|
172
|
+
latin: "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4BDRZ.woff2"
|
|
173
173
|
},
|
|
174
174
|
"200": {
|
|
175
|
-
vietnamese: "https://fonts.gstatic.com/s/elmssans/
|
|
176
|
-
"latin-ext": "https://fonts.gstatic.com/s/elmssans/
|
|
177
|
-
latin: "https://fonts.gstatic.com/s/elmssans/
|
|
175
|
+
vietnamese: "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4CzRZuYU.woff2",
|
|
176
|
+
"latin-ext": "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4CjRZuYU.woff2",
|
|
177
|
+
latin: "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4BDRZ.woff2"
|
|
178
178
|
},
|
|
179
179
|
"300": {
|
|
180
|
-
vietnamese: "https://fonts.gstatic.com/s/elmssans/
|
|
181
|
-
"latin-ext": "https://fonts.gstatic.com/s/elmssans/
|
|
182
|
-
latin: "https://fonts.gstatic.com/s/elmssans/
|
|
180
|
+
vietnamese: "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4CzRZuYU.woff2",
|
|
181
|
+
"latin-ext": "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4CjRZuYU.woff2",
|
|
182
|
+
latin: "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4BDRZ.woff2"
|
|
183
183
|
},
|
|
184
184
|
"400": {
|
|
185
|
-
vietnamese: "https://fonts.gstatic.com/s/elmssans/
|
|
186
|
-
"latin-ext": "https://fonts.gstatic.com/s/elmssans/
|
|
187
|
-
latin: "https://fonts.gstatic.com/s/elmssans/
|
|
185
|
+
vietnamese: "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4CzRZuYU.woff2",
|
|
186
|
+
"latin-ext": "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4CjRZuYU.woff2",
|
|
187
|
+
latin: "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4BDRZ.woff2"
|
|
188
188
|
},
|
|
189
189
|
"500": {
|
|
190
|
-
vietnamese: "https://fonts.gstatic.com/s/elmssans/
|
|
191
|
-
"latin-ext": "https://fonts.gstatic.com/s/elmssans/
|
|
192
|
-
latin: "https://fonts.gstatic.com/s/elmssans/
|
|
190
|
+
vietnamese: "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4CzRZuYU.woff2",
|
|
191
|
+
"latin-ext": "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4CjRZuYU.woff2",
|
|
192
|
+
latin: "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4BDRZ.woff2"
|
|
193
193
|
},
|
|
194
194
|
"600": {
|
|
195
|
-
vietnamese: "https://fonts.gstatic.com/s/elmssans/
|
|
196
|
-
"latin-ext": "https://fonts.gstatic.com/s/elmssans/
|
|
197
|
-
latin: "https://fonts.gstatic.com/s/elmssans/
|
|
195
|
+
vietnamese: "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4CzRZuYU.woff2",
|
|
196
|
+
"latin-ext": "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4CjRZuYU.woff2",
|
|
197
|
+
latin: "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4BDRZ.woff2"
|
|
198
198
|
},
|
|
199
199
|
"700": {
|
|
200
|
-
vietnamese: "https://fonts.gstatic.com/s/elmssans/
|
|
201
|
-
"latin-ext": "https://fonts.gstatic.com/s/elmssans/
|
|
202
|
-
latin: "https://fonts.gstatic.com/s/elmssans/
|
|
200
|
+
vietnamese: "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4CzRZuYU.woff2",
|
|
201
|
+
"latin-ext": "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4CjRZuYU.woff2",
|
|
202
|
+
latin: "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4BDRZ.woff2"
|
|
203
203
|
},
|
|
204
204
|
"800": {
|
|
205
|
-
vietnamese: "https://fonts.gstatic.com/s/elmssans/
|
|
206
|
-
"latin-ext": "https://fonts.gstatic.com/s/elmssans/
|
|
207
|
-
latin: "https://fonts.gstatic.com/s/elmssans/
|
|
205
|
+
vietnamese: "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4CzRZuYU.woff2",
|
|
206
|
+
"latin-ext": "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4CjRZuYU.woff2",
|
|
207
|
+
latin: "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4BDRZ.woff2"
|
|
208
208
|
},
|
|
209
209
|
"900": {
|
|
210
|
-
vietnamese: "https://fonts.gstatic.com/s/elmssans/
|
|
211
|
-
"latin-ext": "https://fonts.gstatic.com/s/elmssans/
|
|
212
|
-
latin: "https://fonts.gstatic.com/s/elmssans/
|
|
210
|
+
vietnamese: "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4CzRZuYU.woff2",
|
|
211
|
+
"latin-ext": "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4CjRZuYU.woff2",
|
|
212
|
+
latin: "https://fonts.gstatic.com/s/elmssans/v7/q5uFsoS_Lf9xv7Su1Fp4BDRZ.woff2"
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
},
|