@remotion/google-fonts 4.0.339 → 4.0.341
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/LICENSE.md +7 -7
- package/dist/cjs/Amiri.js +13 -13
- package/dist/cjs/AmiriQuran.js +3 -3
- package/dist/cjs/Asimovian.d.ts +40 -0
- package/dist/cjs/Asimovian.js +31 -0
- package/dist/cjs/ChironGoRoundTC.d.ts +1074 -0
- package/dist/cjs/ChironGoRoundTC.js +1072 -0
- package/dist/cjs/ChironHeiHK.d.ts +19 -2
- package/dist/cjs/ChironHeiHK.js +1955 -1938
- package/dist/cjs/CossetteTexte.d.ts +42 -0
- package/dist/cjs/CossetteTexte.js +33 -0
- package/dist/cjs/CossetteTitre.d.ts +42 -0
- package/dist/cjs/CossetteTitre.js +33 -0
- package/dist/cjs/EpundaSans.d.ts +96 -0
- package/dist/cjs/EpundaSans.js +83 -0
- package/dist/cjs/EpundaSlab.d.ts +96 -0
- package/dist/cjs/EpundaSlab.js +83 -0
- package/dist/cjs/LibertinusKeyboard.d.ts +38 -0
- package/dist/cjs/LibertinusKeyboard.js +29 -0
- package/dist/cjs/LibertinusSerifDisplay.d.ts +48 -0
- package/dist/cjs/LibertinusSerifDisplay.js +47 -0
- package/dist/cjs/Matangi.js +22 -22
- package/dist/cjs/NotoSansBatak.js +4 -4
- package/dist/cjs/NotoSansBengali.js +28 -28
- package/dist/cjs/NotoSerifBengali.js +28 -28
- package/dist/cjs/NotoSerifDivesAkuru.js +4 -4
- package/dist/cjs/NotoSerifTangut.js +4 -4
- package/dist/cjs/ReemKufi.js +17 -17
- package/dist/cjs/Sirivennela.d.ts +38 -0
- package/dist/cjs/Sirivennela.js +29 -0
- package/dist/cjs/StoryScript.d.ts +40 -0
- package/dist/cjs/StoryScript.js +31 -0
- package/dist/cjs/TASAExplorer.d.ts +54 -0
- package/dist/cjs/TASAExplorer.js +45 -0
- package/dist/cjs/TASAOrbiter.d.ts +54 -0
- package/dist/cjs/TASAOrbiter.js +45 -0
- package/dist/cjs/TikTokSans.js +43 -43
- package/dist/cjs/Tirra.d.ts +65 -0
- package/dist/cjs/Tirra.js +56 -0
- package/dist/cjs/VendSans.d.ts +80 -0
- package/dist/cjs/VendSans.js +67 -0
- package/dist/cjs/index.js +70 -0
- package/dist/esm/42dotSans.mjs +794 -0
- package/dist/esm/Amiri.mjs +13 -13
- package/dist/esm/AmiriQuran.mjs +3 -3
- package/dist/esm/Asimovian.mjs +139 -0
- package/dist/esm/ChironGoRoundTC.mjs +1180 -0
- package/dist/esm/ChironHeiHK.mjs +1955 -1938
- package/dist/esm/CossetteTexte.mjs +141 -0
- package/dist/esm/CossetteTitre.mjs +141 -0
- package/dist/esm/EpundaSans.mjs +191 -0
- package/dist/esm/EpundaSlab.mjs +191 -0
- package/dist/esm/LibertinusKeyboard.mjs +137 -0
- package/dist/esm/LibertinusSerifDisplay.mjs +155 -0
- package/dist/esm/Linefont.mjs +127 -0
- package/dist/esm/Matangi.mjs +22 -22
- package/dist/esm/NotoSansBatak.mjs +4 -4
- package/dist/esm/NotoSansBengali.mjs +28 -28
- package/dist/esm/NotoSerifBengali.mjs +28 -28
- package/dist/esm/NotoSerifDivesAkuru.mjs +4 -4
- package/dist/esm/NotoSerifTangut.mjs +4 -4
- package/dist/esm/ReemKufi.mjs +17 -17
- package/dist/esm/Sirivennela.mjs +137 -0
- package/dist/esm/StoryScript.mjs +139 -0
- package/dist/esm/TASAExplorer.mjs +153 -0
- package/dist/esm/TASAOrbiter.mjs +153 -0
- package/dist/esm/TikTokSans.mjs +43 -43
- package/dist/esm/Tirra.mjs +164 -0
- package/dist/esm/VendSans.mjs +175 -0
- package/dist/esm/index.mjs +70 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +44 -2
|
@@ -0,0 +1,137 @@
|
|
|
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/LibertinusKeyboard.ts
|
|
110
|
+
var getInfo = () => ({
|
|
111
|
+
fontFamily: "Libertinus Keyboard",
|
|
112
|
+
importName: "LibertinusKeyboard",
|
|
113
|
+
version: "v2",
|
|
114
|
+
url: "https://fonts.googleapis.com/css2?family=Libertinus+Keyboard:ital,wght@0,400",
|
|
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
|
+
"400": {
|
|
122
|
+
"latin-ext": "https://fonts.gstatic.com/s/libertinuskeyboard/v2/NaPEcYrQAP5Z2JsyIac0i2DYHaapaf43drW5tFo_.woff2",
|
|
123
|
+
latin: "https://fonts.gstatic.com/s/libertinuskeyboard/v2/NaPEcYrQAP5Z2JsyIac0i2DYHaapaf43dru5tA.woff2"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
subsets: ["latin", "latin-ext"]
|
|
128
|
+
});
|
|
129
|
+
var fontFamily = "Libertinus Keyboard";
|
|
130
|
+
var loadFont = (style, options) => {
|
|
131
|
+
return loadFonts(getInfo(), style, options);
|
|
132
|
+
};
|
|
133
|
+
export {
|
|
134
|
+
loadFont,
|
|
135
|
+
getInfo,
|
|
136
|
+
fontFamily
|
|
137
|
+
};
|
|
@@ -0,0 +1,155 @@
|
|
|
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/LibertinusSerifDisplay.ts
|
|
110
|
+
var getInfo = () => ({
|
|
111
|
+
fontFamily: "Libertinus Serif Display",
|
|
112
|
+
importName: "LibertinusSerifDisplay",
|
|
113
|
+
version: "v2",
|
|
114
|
+
url: "https://fonts.googleapis.com/css2?family=Libertinus+Serif+Display:ital,wght@0,400",
|
|
115
|
+
unicodeRanges: {
|
|
116
|
+
"cyrillic-ext": "U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F",
|
|
117
|
+
cyrillic: "U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116",
|
|
118
|
+
"greek-ext": "U+1F00-1FFF",
|
|
119
|
+
greek: "U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF",
|
|
120
|
+
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",
|
|
121
|
+
"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",
|
|
122
|
+
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"
|
|
123
|
+
},
|
|
124
|
+
fonts: {
|
|
125
|
+
normal: {
|
|
126
|
+
"400": {
|
|
127
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/libertinusserifdisplay/v2/0FlHVOmbklub_P32Hm53RVREi5BsXWudOF_GpgcbicdhLhU.woff2",
|
|
128
|
+
cyrillic: "https://fonts.gstatic.com/s/libertinusserifdisplay/v2/0FlHVOmbklub_P32Hm53RVREi5BsXWudOF_GpgcbgMdhLhU.woff2",
|
|
129
|
+
"greek-ext": "https://fonts.gstatic.com/s/libertinusserifdisplay/v2/0FlHVOmbklub_P32Hm53RVREi5BsXWudOF_GpgcbiMdhLhU.woff2",
|
|
130
|
+
greek: "https://fonts.gstatic.com/s/libertinusserifdisplay/v2/0FlHVOmbklub_P32Hm53RVREi5BsXWudOF_Gpgcbh8dhLhU.woff2",
|
|
131
|
+
vietnamese: "https://fonts.gstatic.com/s/libertinusserifdisplay/v2/0FlHVOmbklub_P32Hm53RVREi5BsXWudOF_Gpgcbi8dhLhU.woff2",
|
|
132
|
+
"latin-ext": "https://fonts.gstatic.com/s/libertinusserifdisplay/v2/0FlHVOmbklub_P32Hm53RVREi5BsXWudOF_GpgcbisdhLhU.woff2",
|
|
133
|
+
latin: "https://fonts.gstatic.com/s/libertinusserifdisplay/v2/0FlHVOmbklub_P32Hm53RVREi5BsXWudOF_GpgcbhMdh.woff2"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
subsets: [
|
|
138
|
+
"cyrillic",
|
|
139
|
+
"cyrillic-ext",
|
|
140
|
+
"greek",
|
|
141
|
+
"greek-ext",
|
|
142
|
+
"latin",
|
|
143
|
+
"latin-ext",
|
|
144
|
+
"vietnamese"
|
|
145
|
+
]
|
|
146
|
+
});
|
|
147
|
+
var fontFamily = "Libertinus Serif Display";
|
|
148
|
+
var loadFont = (style, options) => {
|
|
149
|
+
return loadFonts(getInfo(), style, options);
|
|
150
|
+
};
|
|
151
|
+
export {
|
|
152
|
+
loadFont,
|
|
153
|
+
getInfo,
|
|
154
|
+
fontFamily
|
|
155
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
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/Linefont.ts
|
|
110
|
+
var getInfo = () => ({
|
|
111
|
+
fontFamily: "Linefont",
|
|
112
|
+
importName: "Linefont",
|
|
113
|
+
version: "v8",
|
|
114
|
+
url: "https://fonts.googleapis.com/css2?family=Linefont:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900",
|
|
115
|
+
unicodeRanges: {},
|
|
116
|
+
fonts: {},
|
|
117
|
+
subsets: ["latin"]
|
|
118
|
+
});
|
|
119
|
+
var fontFamily = "Linefont";
|
|
120
|
+
var loadFont = (style, options) => {
|
|
121
|
+
return loadFonts(getInfo(), style, options);
|
|
122
|
+
};
|
|
123
|
+
export {
|
|
124
|
+
loadFont,
|
|
125
|
+
getInfo,
|
|
126
|
+
fontFamily
|
|
127
|
+
};
|
package/dist/esm/Matangi.mjs
CHANGED
|
@@ -110,7 +110,7 @@ var loadFonts = (meta, style, options) => {
|
|
|
110
110
|
var getInfo = () => ({
|
|
111
111
|
fontFamily: "Matangi",
|
|
112
112
|
importName: "Matangi",
|
|
113
|
-
version: "
|
|
113
|
+
version: "v5",
|
|
114
114
|
url: "https://fonts.googleapis.com/css2?family=Matangi:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900",
|
|
115
115
|
unicodeRanges: {
|
|
116
116
|
devanagari: "U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09",
|
|
@@ -120,39 +120,39 @@ var getInfo = () => ({
|
|
|
120
120
|
fonts: {
|
|
121
121
|
normal: {
|
|
122
122
|
"300": {
|
|
123
|
-
devanagari: "https://fonts.gstatic.com/s/matangi/
|
|
124
|
-
"latin-ext": "https://fonts.gstatic.com/s/matangi/
|
|
125
|
-
latin: "https://fonts.gstatic.com/s/matangi/
|
|
123
|
+
devanagari: "https://fonts.gstatic.com/s/matangi/v5/kmK9ZqE2FhDIeX2QlDtl0hbZ.woff2",
|
|
124
|
+
"latin-ext": "https://fonts.gstatic.com/s/matangi/v5/kmK9ZqE2FhDIeX2QlDRl0hbZ.woff2",
|
|
125
|
+
latin: "https://fonts.gstatic.com/s/matangi/v5/kmK9ZqE2FhDIeX2QlDpl0g.woff2"
|
|
126
126
|
},
|
|
127
127
|
"400": {
|
|
128
|
-
devanagari: "https://fonts.gstatic.com/s/matangi/
|
|
129
|
-
"latin-ext": "https://fonts.gstatic.com/s/matangi/
|
|
130
|
-
latin: "https://fonts.gstatic.com/s/matangi/
|
|
128
|
+
devanagari: "https://fonts.gstatic.com/s/matangi/v5/kmK9ZqE2FhDIeX2QlDtl0hbZ.woff2",
|
|
129
|
+
"latin-ext": "https://fonts.gstatic.com/s/matangi/v5/kmK9ZqE2FhDIeX2QlDRl0hbZ.woff2",
|
|
130
|
+
latin: "https://fonts.gstatic.com/s/matangi/v5/kmK9ZqE2FhDIeX2QlDpl0g.woff2"
|
|
131
131
|
},
|
|
132
132
|
"500": {
|
|
133
|
-
devanagari: "https://fonts.gstatic.com/s/matangi/
|
|
134
|
-
"latin-ext": "https://fonts.gstatic.com/s/matangi/
|
|
135
|
-
latin: "https://fonts.gstatic.com/s/matangi/
|
|
133
|
+
devanagari: "https://fonts.gstatic.com/s/matangi/v5/kmK9ZqE2FhDIeX2QlDtl0hbZ.woff2",
|
|
134
|
+
"latin-ext": "https://fonts.gstatic.com/s/matangi/v5/kmK9ZqE2FhDIeX2QlDRl0hbZ.woff2",
|
|
135
|
+
latin: "https://fonts.gstatic.com/s/matangi/v5/kmK9ZqE2FhDIeX2QlDpl0g.woff2"
|
|
136
136
|
},
|
|
137
137
|
"600": {
|
|
138
|
-
devanagari: "https://fonts.gstatic.com/s/matangi/
|
|
139
|
-
"latin-ext": "https://fonts.gstatic.com/s/matangi/
|
|
140
|
-
latin: "https://fonts.gstatic.com/s/matangi/
|
|
138
|
+
devanagari: "https://fonts.gstatic.com/s/matangi/v5/kmK9ZqE2FhDIeX2QlDtl0hbZ.woff2",
|
|
139
|
+
"latin-ext": "https://fonts.gstatic.com/s/matangi/v5/kmK9ZqE2FhDIeX2QlDRl0hbZ.woff2",
|
|
140
|
+
latin: "https://fonts.gstatic.com/s/matangi/v5/kmK9ZqE2FhDIeX2QlDpl0g.woff2"
|
|
141
141
|
},
|
|
142
142
|
"700": {
|
|
143
|
-
devanagari: "https://fonts.gstatic.com/s/matangi/
|
|
144
|
-
"latin-ext": "https://fonts.gstatic.com/s/matangi/
|
|
145
|
-
latin: "https://fonts.gstatic.com/s/matangi/
|
|
143
|
+
devanagari: "https://fonts.gstatic.com/s/matangi/v5/kmK9ZqE2FhDIeX2QlDtl0hbZ.woff2",
|
|
144
|
+
"latin-ext": "https://fonts.gstatic.com/s/matangi/v5/kmK9ZqE2FhDIeX2QlDRl0hbZ.woff2",
|
|
145
|
+
latin: "https://fonts.gstatic.com/s/matangi/v5/kmK9ZqE2FhDIeX2QlDpl0g.woff2"
|
|
146
146
|
},
|
|
147
147
|
"800": {
|
|
148
|
-
devanagari: "https://fonts.gstatic.com/s/matangi/
|
|
149
|
-
"latin-ext": "https://fonts.gstatic.com/s/matangi/
|
|
150
|
-
latin: "https://fonts.gstatic.com/s/matangi/
|
|
148
|
+
devanagari: "https://fonts.gstatic.com/s/matangi/v5/kmK9ZqE2FhDIeX2QlDtl0hbZ.woff2",
|
|
149
|
+
"latin-ext": "https://fonts.gstatic.com/s/matangi/v5/kmK9ZqE2FhDIeX2QlDRl0hbZ.woff2",
|
|
150
|
+
latin: "https://fonts.gstatic.com/s/matangi/v5/kmK9ZqE2FhDIeX2QlDpl0g.woff2"
|
|
151
151
|
},
|
|
152
152
|
"900": {
|
|
153
|
-
devanagari: "https://fonts.gstatic.com/s/matangi/
|
|
154
|
-
"latin-ext": "https://fonts.gstatic.com/s/matangi/
|
|
155
|
-
latin: "https://fonts.gstatic.com/s/matangi/
|
|
153
|
+
devanagari: "https://fonts.gstatic.com/s/matangi/v5/kmK9ZqE2FhDIeX2QlDtl0hbZ.woff2",
|
|
154
|
+
"latin-ext": "https://fonts.gstatic.com/s/matangi/v5/kmK9ZqE2FhDIeX2QlDRl0hbZ.woff2",
|
|
155
|
+
latin: "https://fonts.gstatic.com/s/matangi/v5/kmK9ZqE2FhDIeX2QlDpl0g.woff2"
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
},
|
|
@@ -110,7 +110,7 @@ var loadFonts = (meta, style, options) => {
|
|
|
110
110
|
var getInfo = () => ({
|
|
111
111
|
fontFamily: "Noto Sans Batak",
|
|
112
112
|
importName: "NotoSansBatak",
|
|
113
|
-
version: "
|
|
113
|
+
version: "v23",
|
|
114
114
|
url: "https://fonts.googleapis.com/css2?family=Noto+Sans+Batak:ital,wght@0,400",
|
|
115
115
|
unicodeRanges: {
|
|
116
116
|
batak: "U+1BC0-1BFF, U+200C-200D, U+25CC",
|
|
@@ -120,9 +120,9 @@ var getInfo = () => ({
|
|
|
120
120
|
fonts: {
|
|
121
121
|
normal: {
|
|
122
122
|
"400": {
|
|
123
|
-
batak: "https://fonts.gstatic.com/s/notosansbatak/
|
|
124
|
-
"latin-ext": "https://fonts.gstatic.com/s/notosansbatak/
|
|
125
|
-
latin: "https://fonts.gstatic.com/s/notosansbatak/
|
|
123
|
+
batak: "https://fonts.gstatic.com/s/notosansbatak/v23/gok2H6TwAEdtF9N8-mdTCQvT-ZdQ9oXOLuk.woff2",
|
|
124
|
+
"latin-ext": "https://fonts.gstatic.com/s/notosansbatak/v23/gok2H6TwAEdtF9N8-mdTCQvT-ZdQqoXOLuk.woff2",
|
|
125
|
+
latin: "https://fonts.gstatic.com/s/notosansbatak/v23/gok2H6TwAEdtF9N8-mdTCQvT-ZdQpIXO.woff2"
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
},
|
|
@@ -110,7 +110,7 @@ var loadFonts = (meta, style, options) => {
|
|
|
110
110
|
var getInfo = () => ({
|
|
111
111
|
fontFamily: "Noto Sans Bengali",
|
|
112
112
|
importName: "NotoSansBengali",
|
|
113
|
-
version: "
|
|
113
|
+
version: "v30",
|
|
114
114
|
url: "https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900",
|
|
115
115
|
unicodeRanges: {
|
|
116
116
|
bengali: "U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1",
|
|
@@ -120,49 +120,49 @@ var getInfo = () => ({
|
|
|
120
120
|
fonts: {
|
|
121
121
|
normal: {
|
|
122
122
|
"100": {
|
|
123
|
-
bengali: "https://fonts.gstatic.com/s/notosansbengali/
|
|
124
|
-
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/
|
|
125
|
-
latin: "https://fonts.gstatic.com/s/notosansbengali/
|
|
123
|
+
bengali: "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2",
|
|
124
|
+
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2",
|
|
125
|
+
latin: "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2"
|
|
126
126
|
},
|
|
127
127
|
"200": {
|
|
128
|
-
bengali: "https://fonts.gstatic.com/s/notosansbengali/
|
|
129
|
-
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/
|
|
130
|
-
latin: "https://fonts.gstatic.com/s/notosansbengali/
|
|
128
|
+
bengali: "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2",
|
|
129
|
+
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2",
|
|
130
|
+
latin: "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2"
|
|
131
131
|
},
|
|
132
132
|
"300": {
|
|
133
|
-
bengali: "https://fonts.gstatic.com/s/notosansbengali/
|
|
134
|
-
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/
|
|
135
|
-
latin: "https://fonts.gstatic.com/s/notosansbengali/
|
|
133
|
+
bengali: "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2",
|
|
134
|
+
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2",
|
|
135
|
+
latin: "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2"
|
|
136
136
|
},
|
|
137
137
|
"400": {
|
|
138
|
-
bengali: "https://fonts.gstatic.com/s/notosansbengali/
|
|
139
|
-
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/
|
|
140
|
-
latin: "https://fonts.gstatic.com/s/notosansbengali/
|
|
138
|
+
bengali: "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2",
|
|
139
|
+
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2",
|
|
140
|
+
latin: "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2"
|
|
141
141
|
},
|
|
142
142
|
"500": {
|
|
143
|
-
bengali: "https://fonts.gstatic.com/s/notosansbengali/
|
|
144
|
-
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/
|
|
145
|
-
latin: "https://fonts.gstatic.com/s/notosansbengali/
|
|
143
|
+
bengali: "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2",
|
|
144
|
+
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2",
|
|
145
|
+
latin: "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2"
|
|
146
146
|
},
|
|
147
147
|
"600": {
|
|
148
|
-
bengali: "https://fonts.gstatic.com/s/notosansbengali/
|
|
149
|
-
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/
|
|
150
|
-
latin: "https://fonts.gstatic.com/s/notosansbengali/
|
|
148
|
+
bengali: "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2",
|
|
149
|
+
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2",
|
|
150
|
+
latin: "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2"
|
|
151
151
|
},
|
|
152
152
|
"700": {
|
|
153
|
-
bengali: "https://fonts.gstatic.com/s/notosansbengali/
|
|
154
|
-
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/
|
|
155
|
-
latin: "https://fonts.gstatic.com/s/notosansbengali/
|
|
153
|
+
bengali: "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2",
|
|
154
|
+
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2",
|
|
155
|
+
latin: "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2"
|
|
156
156
|
},
|
|
157
157
|
"800": {
|
|
158
|
-
bengali: "https://fonts.gstatic.com/s/notosansbengali/
|
|
159
|
-
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/
|
|
160
|
-
latin: "https://fonts.gstatic.com/s/notosansbengali/
|
|
158
|
+
bengali: "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2",
|
|
159
|
+
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2",
|
|
160
|
+
latin: "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2"
|
|
161
161
|
},
|
|
162
162
|
"900": {
|
|
163
|
-
bengali: "https://fonts.gstatic.com/s/notosansbengali/
|
|
164
|
-
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/
|
|
165
|
-
latin: "https://fonts.gstatic.com/s/notosansbengali/
|
|
163
|
+
bengali: "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2",
|
|
164
|
+
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2",
|
|
165
|
+
latin: "https://fonts.gstatic.com/s/notosansbengali/v30/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2"
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
},
|