@remotion/google-fonts 4.0.300 → 4.0.302
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/Akatab.js +19 -19
- package/dist/cjs/Exile.d.ts +38 -0
- package/dist/cjs/Exile.js +29 -0
- package/dist/cjs/Figtree.js +29 -29
- package/dist/cjs/Iansui.d.ts +3 -1
- package/dist/cjs/Iansui.js +112 -110
- package/dist/cjs/NotoZnamennyMusicalNotation.js +6 -6
- package/dist/cjs/PlaypenSans.d.ts +28 -1
- package/dist/cjs/PlaypenSans.js +142 -106
- package/dist/cjs/PlaypenSansArabic.d.ts +174 -0
- package/dist/cjs/PlaypenSansArabic.js +165 -0
- package/dist/cjs/PlaypenSansDeva.d.ts +156 -0
- package/dist/cjs/PlaypenSansDeva.js +147 -0
- package/dist/cjs/PlaypenSansHebrew.d.ts +165 -0
- package/dist/cjs/PlaypenSansHebrew.js +156 -0
- package/dist/cjs/PlaypenSansThai.d.ts +165 -0
- package/dist/cjs/PlaypenSansThai.js +156 -0
- package/dist/cjs/index.js +25 -0
- package/dist/esm/Akatab.mjs +19 -19
- package/dist/esm/{MontserratSubrayada.mjs → Exile.mjs} +21 -12
- package/dist/esm/Figtree.mjs +29 -29
- package/dist/esm/Iansui.mjs +112 -110
- package/dist/esm/NotoZnamennyMusicalNotation.mjs +6 -6
- package/dist/esm/PlaypenSans.mjs +142 -106
- package/dist/esm/PlaypenSansArabic.mjs +273 -0
- package/dist/esm/PlaypenSansDeva.mjs +255 -0
- package/dist/esm/PlaypenSansHebrew.mjs +264 -0
- package/dist/esm/PlaypenSansThai.mjs +264 -0
- package/dist/esm/index.mjs +25 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +17 -2
- package/dist/esm/BigShouldersDisplay.mjs +0 -169
- package/dist/esm/BigShouldersInlineDisplay.mjs +0 -169
- package/dist/esm/BigShouldersInlineText.mjs +0 -169
- package/dist/esm/BigShouldersStencilDisplay.mjs +0 -169
- package/dist/esm/BigShouldersStencilText.mjs +0 -169
- package/dist/esm/BigShouldersText.mjs +0 -169
package/package.json
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/google-fonts"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/google-fonts",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.302",
|
|
7
7
|
"description": "Use Google Fonts in Remotion",
|
|
8
8
|
"main": "dist/cjs/index.js",
|
|
9
9
|
"module": "dist/esm/index.mjs",
|
|
10
10
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"remotion": "4.0.
|
|
12
|
+
"remotion": "4.0.302"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@types/css-font-loading-module": "0.0.14",
|
|
@@ -1328,6 +1328,9 @@
|
|
|
1328
1328
|
"Ewert": [
|
|
1329
1329
|
"dist/cjs/Ewert.d.ts"
|
|
1330
1330
|
],
|
|
1331
|
+
"Exile": [
|
|
1332
|
+
"dist/cjs/Exile.d.ts"
|
|
1333
|
+
],
|
|
1331
1334
|
"Exo": [
|
|
1332
1335
|
"dist/cjs/Exo.d.ts"
|
|
1333
1336
|
],
|
|
@@ -3815,6 +3818,18 @@
|
|
|
3815
3818
|
"PlaypenSans": [
|
|
3816
3819
|
"dist/cjs/PlaypenSans.d.ts"
|
|
3817
3820
|
],
|
|
3821
|
+
"PlaypenSansArabic": [
|
|
3822
|
+
"dist/cjs/PlaypenSansArabic.d.ts"
|
|
3823
|
+
],
|
|
3824
|
+
"PlaypenSansDeva": [
|
|
3825
|
+
"dist/cjs/PlaypenSansDeva.d.ts"
|
|
3826
|
+
],
|
|
3827
|
+
"PlaypenSansHebrew": [
|
|
3828
|
+
"dist/cjs/PlaypenSansHebrew.d.ts"
|
|
3829
|
+
],
|
|
3830
|
+
"PlaypenSansThai": [
|
|
3831
|
+
"dist/cjs/PlaypenSansThai.d.ts"
|
|
3832
|
+
],
|
|
3818
3833
|
"PlusJakartaSans": [
|
|
3819
3834
|
"dist/cjs/PlusJakartaSans.d.ts"
|
|
3820
3835
|
],
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
// src/base.ts
|
|
2
|
-
import { continueRender, delayRender } from "remotion";
|
|
3
|
-
import { NoReactInternals } from "remotion/no-react";
|
|
4
|
-
var loadedFonts = {};
|
|
5
|
-
var loadFontFaceOrTimeoutAfter20Seconds = (fontFace) => {
|
|
6
|
-
const timeout = Promise.withResolvers();
|
|
7
|
-
const int = setTimeout(() => {
|
|
8
|
-
timeout.reject(new Error("Timed out loading Google Font"));
|
|
9
|
-
}, 18000);
|
|
10
|
-
return Promise.race([
|
|
11
|
-
fontFace.load().then(() => {
|
|
12
|
-
clearTimeout(int);
|
|
13
|
-
}),
|
|
14
|
-
timeout.promise
|
|
15
|
-
]);
|
|
16
|
-
};
|
|
17
|
-
var loadFonts = (meta, style, options) => {
|
|
18
|
-
const weightsAndSubsetsAreSpecified = Array.isArray(options?.weights) && Array.isArray(options?.subsets) && options.weights.length > 0 && options.subsets.length > 0;
|
|
19
|
-
if (NoReactInternals.ENABLE_V5_BREAKING_CHANGES && !weightsAndSubsetsAreSpecified) {
|
|
20
|
-
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.");
|
|
21
|
-
}
|
|
22
|
-
const promises = [];
|
|
23
|
-
const styles = style ? [style] : Object.keys(meta.fonts);
|
|
24
|
-
let fontsLoaded = 0;
|
|
25
|
-
for (const style2 of styles) {
|
|
26
|
-
if (typeof FontFace === "undefined") {
|
|
27
|
-
continue;
|
|
28
|
-
}
|
|
29
|
-
if (!meta.fonts[style2]) {
|
|
30
|
-
throw new Error(`The font ${meta.fontFamily} does not have a style ${style2}`);
|
|
31
|
-
}
|
|
32
|
-
const weights = options?.weights ?? Object.keys(meta.fonts[style2]);
|
|
33
|
-
for (const weight of weights) {
|
|
34
|
-
if (!meta.fonts[style2][weight]) {
|
|
35
|
-
throw new Error(`The font ${meta.fontFamily} does not have a weight ${weight} in style ${style2}`);
|
|
36
|
-
}
|
|
37
|
-
const subsets = options?.subsets ?? Object.keys(meta.fonts[style2][weight]);
|
|
38
|
-
for (const subset of subsets) {
|
|
39
|
-
let font = meta.fonts[style2]?.[weight]?.[subset];
|
|
40
|
-
if (!font) {
|
|
41
|
-
throw new Error(`weight: ${weight} subset: ${subset} is not available for '${meta.fontFamily}'`);
|
|
42
|
-
}
|
|
43
|
-
let fontKey = `${meta.fontFamily}-${style2}-${weight}-${subset}`;
|
|
44
|
-
const previousPromise = loadedFonts[fontKey];
|
|
45
|
-
if (previousPromise) {
|
|
46
|
-
promises.push(previousPromise);
|
|
47
|
-
continue;
|
|
48
|
-
}
|
|
49
|
-
const baseLabel = `Fetching ${meta.fontFamily} font ${JSON.stringify({
|
|
50
|
-
style: style2,
|
|
51
|
-
weight,
|
|
52
|
-
subset
|
|
53
|
-
})}`;
|
|
54
|
-
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`;
|
|
55
|
-
const handle = delayRender(label, { timeoutInMilliseconds: 60000 });
|
|
56
|
-
fontsLoaded++;
|
|
57
|
-
const fontFace = new FontFace(meta.fontFamily, `url(${font}) format('woff2')`, {
|
|
58
|
-
weight,
|
|
59
|
-
style: style2,
|
|
60
|
-
unicodeRange: meta.unicodeRanges[subset]
|
|
61
|
-
});
|
|
62
|
-
let attempts = 2;
|
|
63
|
-
const tryToLoad = () => {
|
|
64
|
-
if (fontFace.status === "loaded") {
|
|
65
|
-
continueRender(handle);
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
const promise = loadFontFaceOrTimeoutAfter20Seconds(fontFace).then(() => {
|
|
69
|
-
(options?.document ?? document).fonts.add(fontFace);
|
|
70
|
-
continueRender(handle);
|
|
71
|
-
}).catch((err) => {
|
|
72
|
-
loadedFonts[fontKey] = undefined;
|
|
73
|
-
if (attempts === 0) {
|
|
74
|
-
throw err;
|
|
75
|
-
} else {
|
|
76
|
-
attempts--;
|
|
77
|
-
tryToLoad();
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
loadedFonts[fontKey] = promise;
|
|
81
|
-
promises.push(promise);
|
|
82
|
-
};
|
|
83
|
-
tryToLoad();
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
if (fontsLoaded > 20) {
|
|
87
|
-
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".`);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
return {
|
|
91
|
-
fontFamily: meta.fontFamily,
|
|
92
|
-
fonts: meta.fonts,
|
|
93
|
-
unicodeRanges: meta.unicodeRanges,
|
|
94
|
-
waitUntilDone: () => Promise.all(promises).then(() => {
|
|
95
|
-
return;
|
|
96
|
-
})
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
// src/BigShouldersDisplay.ts
|
|
101
|
-
var getInfo = () => ({
|
|
102
|
-
fontFamily: "Big Shoulders Display",
|
|
103
|
-
importName: "BigShouldersDisplay",
|
|
104
|
-
version: "v21",
|
|
105
|
-
url: "https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900",
|
|
106
|
-
unicodeRanges: {
|
|
107
|
-
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",
|
|
108
|
-
"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",
|
|
109
|
-
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"
|
|
110
|
-
},
|
|
111
|
-
fonts: {
|
|
112
|
-
normal: {
|
|
113
|
-
"100": {
|
|
114
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1cw9DuHpM.woff2",
|
|
115
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1cwtDuHpM.woff2",
|
|
116
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1czNDu.woff2"
|
|
117
|
-
},
|
|
118
|
-
"200": {
|
|
119
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1cw9DuHpM.woff2",
|
|
120
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1cwtDuHpM.woff2",
|
|
121
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1czNDu.woff2"
|
|
122
|
-
},
|
|
123
|
-
"300": {
|
|
124
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1cw9DuHpM.woff2",
|
|
125
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1cwtDuHpM.woff2",
|
|
126
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1czNDu.woff2"
|
|
127
|
-
},
|
|
128
|
-
"400": {
|
|
129
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1cw9DuHpM.woff2",
|
|
130
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1cwtDuHpM.woff2",
|
|
131
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1czNDu.woff2"
|
|
132
|
-
},
|
|
133
|
-
"500": {
|
|
134
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1cw9DuHpM.woff2",
|
|
135
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1cwtDuHpM.woff2",
|
|
136
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1czNDu.woff2"
|
|
137
|
-
},
|
|
138
|
-
"600": {
|
|
139
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1cw9DuHpM.woff2",
|
|
140
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1cwtDuHpM.woff2",
|
|
141
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1czNDu.woff2"
|
|
142
|
-
},
|
|
143
|
-
"700": {
|
|
144
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1cw9DuHpM.woff2",
|
|
145
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1cwtDuHpM.woff2",
|
|
146
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1czNDu.woff2"
|
|
147
|
-
},
|
|
148
|
-
"800": {
|
|
149
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1cw9DuHpM.woff2",
|
|
150
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1cwtDuHpM.woff2",
|
|
151
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1czNDu.woff2"
|
|
152
|
-
},
|
|
153
|
-
"900": {
|
|
154
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1cw9DuHpM.woff2",
|
|
155
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1cwtDuHpM.woff2",
|
|
156
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersdisplay/v22/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1czNDu.woff2"
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
var fontFamily = "Big Shoulders Display";
|
|
162
|
-
var loadFont = (style, options) => {
|
|
163
|
-
return loadFonts(getInfo(), style, options);
|
|
164
|
-
};
|
|
165
|
-
export {
|
|
166
|
-
loadFont,
|
|
167
|
-
getInfo,
|
|
168
|
-
fontFamily
|
|
169
|
-
};
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
// src/base.ts
|
|
2
|
-
import { continueRender, delayRender } from "remotion";
|
|
3
|
-
import { NoReactInternals } from "remotion/no-react";
|
|
4
|
-
var loadedFonts = {};
|
|
5
|
-
var loadFontFaceOrTimeoutAfter20Seconds = (fontFace) => {
|
|
6
|
-
const timeout = Promise.withResolvers();
|
|
7
|
-
const int = setTimeout(() => {
|
|
8
|
-
timeout.reject(new Error("Timed out loading Google Font"));
|
|
9
|
-
}, 18000);
|
|
10
|
-
return Promise.race([
|
|
11
|
-
fontFace.load().then(() => {
|
|
12
|
-
clearTimeout(int);
|
|
13
|
-
}),
|
|
14
|
-
timeout.promise
|
|
15
|
-
]);
|
|
16
|
-
};
|
|
17
|
-
var loadFonts = (meta, style, options) => {
|
|
18
|
-
const weightsAndSubsetsAreSpecified = Array.isArray(options?.weights) && Array.isArray(options?.subsets) && options.weights.length > 0 && options.subsets.length > 0;
|
|
19
|
-
if (NoReactInternals.ENABLE_V5_BREAKING_CHANGES && !weightsAndSubsetsAreSpecified) {
|
|
20
|
-
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.");
|
|
21
|
-
}
|
|
22
|
-
const promises = [];
|
|
23
|
-
const styles = style ? [style] : Object.keys(meta.fonts);
|
|
24
|
-
let fontsLoaded = 0;
|
|
25
|
-
for (const style2 of styles) {
|
|
26
|
-
if (typeof FontFace === "undefined") {
|
|
27
|
-
continue;
|
|
28
|
-
}
|
|
29
|
-
if (!meta.fonts[style2]) {
|
|
30
|
-
throw new Error(`The font ${meta.fontFamily} does not have a style ${style2}`);
|
|
31
|
-
}
|
|
32
|
-
const weights = options?.weights ?? Object.keys(meta.fonts[style2]);
|
|
33
|
-
for (const weight of weights) {
|
|
34
|
-
if (!meta.fonts[style2][weight]) {
|
|
35
|
-
throw new Error(`The font ${meta.fontFamily} does not have a weight ${weight} in style ${style2}`);
|
|
36
|
-
}
|
|
37
|
-
const subsets = options?.subsets ?? Object.keys(meta.fonts[style2][weight]);
|
|
38
|
-
for (const subset of subsets) {
|
|
39
|
-
let font = meta.fonts[style2]?.[weight]?.[subset];
|
|
40
|
-
if (!font) {
|
|
41
|
-
throw new Error(`weight: ${weight} subset: ${subset} is not available for '${meta.fontFamily}'`);
|
|
42
|
-
}
|
|
43
|
-
let fontKey = `${meta.fontFamily}-${style2}-${weight}-${subset}`;
|
|
44
|
-
const previousPromise = loadedFonts[fontKey];
|
|
45
|
-
if (previousPromise) {
|
|
46
|
-
promises.push(previousPromise);
|
|
47
|
-
continue;
|
|
48
|
-
}
|
|
49
|
-
const baseLabel = `Fetching ${meta.fontFamily} font ${JSON.stringify({
|
|
50
|
-
style: style2,
|
|
51
|
-
weight,
|
|
52
|
-
subset
|
|
53
|
-
})}`;
|
|
54
|
-
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`;
|
|
55
|
-
const handle = delayRender(label, { timeoutInMilliseconds: 60000 });
|
|
56
|
-
fontsLoaded++;
|
|
57
|
-
const fontFace = new FontFace(meta.fontFamily, `url(${font}) format('woff2')`, {
|
|
58
|
-
weight,
|
|
59
|
-
style: style2,
|
|
60
|
-
unicodeRange: meta.unicodeRanges[subset]
|
|
61
|
-
});
|
|
62
|
-
let attempts = 2;
|
|
63
|
-
const tryToLoad = () => {
|
|
64
|
-
if (fontFace.status === "loaded") {
|
|
65
|
-
continueRender(handle);
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
const promise = loadFontFaceOrTimeoutAfter20Seconds(fontFace).then(() => {
|
|
69
|
-
(options?.document ?? document).fonts.add(fontFace);
|
|
70
|
-
continueRender(handle);
|
|
71
|
-
}).catch((err) => {
|
|
72
|
-
loadedFonts[fontKey] = undefined;
|
|
73
|
-
if (attempts === 0) {
|
|
74
|
-
throw err;
|
|
75
|
-
} else {
|
|
76
|
-
attempts--;
|
|
77
|
-
tryToLoad();
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
loadedFonts[fontKey] = promise;
|
|
81
|
-
promises.push(promise);
|
|
82
|
-
};
|
|
83
|
-
tryToLoad();
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
if (fontsLoaded > 20) {
|
|
87
|
-
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".`);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
return {
|
|
91
|
-
fontFamily: meta.fontFamily,
|
|
92
|
-
fonts: meta.fonts,
|
|
93
|
-
unicodeRanges: meta.unicodeRanges,
|
|
94
|
-
waitUntilDone: () => Promise.all(promises).then(() => {
|
|
95
|
-
return;
|
|
96
|
-
})
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
// src/BigShouldersInlineDisplay.ts
|
|
101
|
-
var getInfo = () => ({
|
|
102
|
-
fontFamily: "Big Shoulders Inline Display",
|
|
103
|
-
importName: "BigShouldersInlineDisplay",
|
|
104
|
-
version: "v27",
|
|
105
|
-
url: "https://fonts.googleapis.com/css2?family=Big+Shoulders+Inline+Display:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900",
|
|
106
|
-
unicodeRanges: {
|
|
107
|
-
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",
|
|
108
|
-
"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",
|
|
109
|
-
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"
|
|
110
|
-
},
|
|
111
|
-
fonts: {
|
|
112
|
-
normal: {
|
|
113
|
-
"100": {
|
|
114
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMtCtiTpt.woff2",
|
|
115
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMtGtiTpt.woff2",
|
|
116
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMt-tiQ.woff2"
|
|
117
|
-
},
|
|
118
|
-
"200": {
|
|
119
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMtCtiTpt.woff2",
|
|
120
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMtGtiTpt.woff2",
|
|
121
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMt-tiQ.woff2"
|
|
122
|
-
},
|
|
123
|
-
"300": {
|
|
124
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMtCtiTpt.woff2",
|
|
125
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMtGtiTpt.woff2",
|
|
126
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMt-tiQ.woff2"
|
|
127
|
-
},
|
|
128
|
-
"400": {
|
|
129
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMtCtiTpt.woff2",
|
|
130
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMtGtiTpt.woff2",
|
|
131
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMt-tiQ.woff2"
|
|
132
|
-
},
|
|
133
|
-
"500": {
|
|
134
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMtCtiTpt.woff2",
|
|
135
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMtGtiTpt.woff2",
|
|
136
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMt-tiQ.woff2"
|
|
137
|
-
},
|
|
138
|
-
"600": {
|
|
139
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMtCtiTpt.woff2",
|
|
140
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMtGtiTpt.woff2",
|
|
141
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMt-tiQ.woff2"
|
|
142
|
-
},
|
|
143
|
-
"700": {
|
|
144
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMtCtiTpt.woff2",
|
|
145
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMtGtiTpt.woff2",
|
|
146
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMt-tiQ.woff2"
|
|
147
|
-
},
|
|
148
|
-
"800": {
|
|
149
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMtCtiTpt.woff2",
|
|
150
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMtGtiTpt.woff2",
|
|
151
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMt-tiQ.woff2"
|
|
152
|
-
},
|
|
153
|
-
"900": {
|
|
154
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMtCtiTpt.woff2",
|
|
155
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMtGtiTpt.woff2",
|
|
156
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersinlinedisplay/v28/_LObmyfF4eSU_SCrJc9OI24U7siGvBGcZqmqV9-ZZ85CMt-tiQ.woff2"
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
var fontFamily = "Big Shoulders Inline Display";
|
|
162
|
-
var loadFont = (style, options) => {
|
|
163
|
-
return loadFonts(getInfo(), style, options);
|
|
164
|
-
};
|
|
165
|
-
export {
|
|
166
|
-
loadFont,
|
|
167
|
-
getInfo,
|
|
168
|
-
fontFamily
|
|
169
|
-
};
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
// src/base.ts
|
|
2
|
-
import { continueRender, delayRender } from "remotion";
|
|
3
|
-
import { NoReactInternals } from "remotion/no-react";
|
|
4
|
-
var loadedFonts = {};
|
|
5
|
-
var loadFontFaceOrTimeoutAfter20Seconds = (fontFace) => {
|
|
6
|
-
const timeout = Promise.withResolvers();
|
|
7
|
-
const int = setTimeout(() => {
|
|
8
|
-
timeout.reject(new Error("Timed out loading Google Font"));
|
|
9
|
-
}, 18000);
|
|
10
|
-
return Promise.race([
|
|
11
|
-
fontFace.load().then(() => {
|
|
12
|
-
clearTimeout(int);
|
|
13
|
-
}),
|
|
14
|
-
timeout.promise
|
|
15
|
-
]);
|
|
16
|
-
};
|
|
17
|
-
var loadFonts = (meta, style, options) => {
|
|
18
|
-
const weightsAndSubsetsAreSpecified = Array.isArray(options?.weights) && Array.isArray(options?.subsets) && options.weights.length > 0 && options.subsets.length > 0;
|
|
19
|
-
if (NoReactInternals.ENABLE_V5_BREAKING_CHANGES && !weightsAndSubsetsAreSpecified) {
|
|
20
|
-
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.");
|
|
21
|
-
}
|
|
22
|
-
const promises = [];
|
|
23
|
-
const styles = style ? [style] : Object.keys(meta.fonts);
|
|
24
|
-
let fontsLoaded = 0;
|
|
25
|
-
for (const style2 of styles) {
|
|
26
|
-
if (typeof FontFace === "undefined") {
|
|
27
|
-
continue;
|
|
28
|
-
}
|
|
29
|
-
if (!meta.fonts[style2]) {
|
|
30
|
-
throw new Error(`The font ${meta.fontFamily} does not have a style ${style2}`);
|
|
31
|
-
}
|
|
32
|
-
const weights = options?.weights ?? Object.keys(meta.fonts[style2]);
|
|
33
|
-
for (const weight of weights) {
|
|
34
|
-
if (!meta.fonts[style2][weight]) {
|
|
35
|
-
throw new Error(`The font ${meta.fontFamily} does not have a weight ${weight} in style ${style2}`);
|
|
36
|
-
}
|
|
37
|
-
const subsets = options?.subsets ?? Object.keys(meta.fonts[style2][weight]);
|
|
38
|
-
for (const subset of subsets) {
|
|
39
|
-
let font = meta.fonts[style2]?.[weight]?.[subset];
|
|
40
|
-
if (!font) {
|
|
41
|
-
throw new Error(`weight: ${weight} subset: ${subset} is not available for '${meta.fontFamily}'`);
|
|
42
|
-
}
|
|
43
|
-
let fontKey = `${meta.fontFamily}-${style2}-${weight}-${subset}`;
|
|
44
|
-
const previousPromise = loadedFonts[fontKey];
|
|
45
|
-
if (previousPromise) {
|
|
46
|
-
promises.push(previousPromise);
|
|
47
|
-
continue;
|
|
48
|
-
}
|
|
49
|
-
const baseLabel = `Fetching ${meta.fontFamily} font ${JSON.stringify({
|
|
50
|
-
style: style2,
|
|
51
|
-
weight,
|
|
52
|
-
subset
|
|
53
|
-
})}`;
|
|
54
|
-
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`;
|
|
55
|
-
const handle = delayRender(label, { timeoutInMilliseconds: 60000 });
|
|
56
|
-
fontsLoaded++;
|
|
57
|
-
const fontFace = new FontFace(meta.fontFamily, `url(${font}) format('woff2')`, {
|
|
58
|
-
weight,
|
|
59
|
-
style: style2,
|
|
60
|
-
unicodeRange: meta.unicodeRanges[subset]
|
|
61
|
-
});
|
|
62
|
-
let attempts = 2;
|
|
63
|
-
const tryToLoad = () => {
|
|
64
|
-
if (fontFace.status === "loaded") {
|
|
65
|
-
continueRender(handle);
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
const promise = loadFontFaceOrTimeoutAfter20Seconds(fontFace).then(() => {
|
|
69
|
-
(options?.document ?? document).fonts.add(fontFace);
|
|
70
|
-
continueRender(handle);
|
|
71
|
-
}).catch((err) => {
|
|
72
|
-
loadedFonts[fontKey] = undefined;
|
|
73
|
-
if (attempts === 0) {
|
|
74
|
-
throw err;
|
|
75
|
-
} else {
|
|
76
|
-
attempts--;
|
|
77
|
-
tryToLoad();
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
loadedFonts[fontKey] = promise;
|
|
81
|
-
promises.push(promise);
|
|
82
|
-
};
|
|
83
|
-
tryToLoad();
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
if (fontsLoaded > 20) {
|
|
87
|
-
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".`);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
return {
|
|
91
|
-
fontFamily: meta.fontFamily,
|
|
92
|
-
fonts: meta.fonts,
|
|
93
|
-
unicodeRanges: meta.unicodeRanges,
|
|
94
|
-
waitUntilDone: () => Promise.all(promises).then(() => {
|
|
95
|
-
return;
|
|
96
|
-
})
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
// src/BigShouldersInlineText.ts
|
|
101
|
-
var getInfo = () => ({
|
|
102
|
-
fontFamily: "Big Shoulders Inline Text",
|
|
103
|
-
importName: "BigShouldersInlineText",
|
|
104
|
-
version: "v26",
|
|
105
|
-
url: "https://fonts.googleapis.com/css2?family=Big+Shoulders+Inline+Text:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900",
|
|
106
|
-
unicodeRanges: {
|
|
107
|
-
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",
|
|
108
|
-
"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",
|
|
109
|
-
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"
|
|
110
|
-
},
|
|
111
|
-
fonts: {
|
|
112
|
-
normal: {
|
|
113
|
-
"100": {
|
|
114
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGSLwHmI1.woff2",
|
|
115
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGSPwHmI1.woff2",
|
|
116
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGS3wHg.woff2"
|
|
117
|
-
},
|
|
118
|
-
"200": {
|
|
119
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGSLwHmI1.woff2",
|
|
120
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGSPwHmI1.woff2",
|
|
121
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGS3wHg.woff2"
|
|
122
|
-
},
|
|
123
|
-
"300": {
|
|
124
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGSLwHmI1.woff2",
|
|
125
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGSPwHmI1.woff2",
|
|
126
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGS3wHg.woff2"
|
|
127
|
-
},
|
|
128
|
-
"400": {
|
|
129
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGSLwHmI1.woff2",
|
|
130
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGSPwHmI1.woff2",
|
|
131
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGS3wHg.woff2"
|
|
132
|
-
},
|
|
133
|
-
"500": {
|
|
134
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGSLwHmI1.woff2",
|
|
135
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGSPwHmI1.woff2",
|
|
136
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGS3wHg.woff2"
|
|
137
|
-
},
|
|
138
|
-
"600": {
|
|
139
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGSLwHmI1.woff2",
|
|
140
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGSPwHmI1.woff2",
|
|
141
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGS3wHg.woff2"
|
|
142
|
-
},
|
|
143
|
-
"700": {
|
|
144
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGSLwHmI1.woff2",
|
|
145
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGSPwHmI1.woff2",
|
|
146
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGS3wHg.woff2"
|
|
147
|
-
},
|
|
148
|
-
"800": {
|
|
149
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGSLwHmI1.woff2",
|
|
150
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGSPwHmI1.woff2",
|
|
151
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGS3wHg.woff2"
|
|
152
|
-
},
|
|
153
|
-
"900": {
|
|
154
|
-
vietnamese: "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGSLwHmI1.woff2",
|
|
155
|
-
"latin-ext": "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGSPwHmI1.woff2",
|
|
156
|
-
latin: "https://fonts.gstatic.com/s/bigshouldersinlinetext/v27/vm8kdQDmVECV5-vm5dJ-Tp-6WDeRjL4RV7dP8u-NGS3wHg.woff2"
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
var fontFamily = "Big Shoulders Inline Text";
|
|
162
|
-
var loadFont = (style, options) => {
|
|
163
|
-
return loadFonts(getInfo(), style, options);
|
|
164
|
-
};
|
|
165
|
-
export {
|
|
166
|
-
loadFont,
|
|
167
|
-
getInfo,
|
|
168
|
-
fontFamily
|
|
169
|
-
};
|