@remotion/google-fonts 4.0.474 → 4.0.476
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/AlienBlock.d.ts +38 -0
- package/dist/cjs/AlienBlock.js +29 -0
- package/dist/cjs/GeistMono.js +109 -109
- package/dist/cjs/MPLUSRounded1c.js +883 -883
- package/dist/cjs/Ole.js +4 -4
- package/dist/cjs/Pliant.d.ts +188 -0
- package/dist/cjs/Pliant.js +182 -0
- package/dist/cjs/index.js +10 -0
- package/dist/esm/AlienBlock.mjs +167 -0
- package/dist/esm/GeistMono.mjs +109 -109
- package/dist/esm/MPLUSRounded1c.mjs +883 -883
- package/dist/esm/Ole.mjs +4 -4
- package/dist/esm/Pliant.mjs +320 -0
- package/dist/esm/index.mjs +10 -0
- package/package.json +8 -2
package/dist/esm/Ole.mjs
CHANGED
|
@@ -140,7 +140,7 @@ var loadFonts = (meta, style, options) => {
|
|
|
140
140
|
var getInfo = () => ({
|
|
141
141
|
fontFamily: "Ole",
|
|
142
142
|
importName: "Ole",
|
|
143
|
-
version: "
|
|
143
|
+
version: "v6",
|
|
144
144
|
url: "https://fonts.googleapis.com/css2?family=Ole:ital,wght@0,400",
|
|
145
145
|
unicodeRanges: {
|
|
146
146
|
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",
|
|
@@ -150,9 +150,9 @@ var getInfo = () => ({
|
|
|
150
150
|
fonts: {
|
|
151
151
|
normal: {
|
|
152
152
|
"400": {
|
|
153
|
-
vietnamese: "https://fonts.gstatic.com/s/ole/
|
|
154
|
-
"latin-ext": "https://fonts.gstatic.com/s/ole/
|
|
155
|
-
latin: "https://fonts.gstatic.com/s/ole/
|
|
153
|
+
vietnamese: "https://fonts.gstatic.com/s/ole/v6/dFazZf6Z-rdM_fY7xqI.woff2",
|
|
154
|
+
"latin-ext": "https://fonts.gstatic.com/s/ole/v6/dFazZf6Z-rdM_PY7xqI.woff2",
|
|
155
|
+
latin: "https://fonts.gstatic.com/s/ole/v6/dFazZf6Z-rdM8vY7.woff2"
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
},
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
// src/base.ts
|
|
2
|
+
import { continueRender, delayRender } from "remotion";
|
|
3
|
+
import { NoReactInternals } from "remotion/no-react";
|
|
4
|
+
|
|
5
|
+
// src/resolve-font-subsets.ts
|
|
6
|
+
var isChunkSubset = (subset) => /^\[\d+\]$/.test(subset);
|
|
7
|
+
var compareChunkSubsets = (a, b) => {
|
|
8
|
+
return Number(a.slice(1, -1)) - Number(b.slice(1, -1));
|
|
9
|
+
};
|
|
10
|
+
var resolveFontSubsetKeys = ({
|
|
11
|
+
availableSubsetKeys,
|
|
12
|
+
metaSubsets,
|
|
13
|
+
requestedSubset
|
|
14
|
+
}) => {
|
|
15
|
+
if (availableSubsetKeys.includes(requestedSubset)) {
|
|
16
|
+
return [requestedSubset];
|
|
17
|
+
}
|
|
18
|
+
if (!metaSubsets.includes(requestedSubset)) {
|
|
19
|
+
return [requestedSubset];
|
|
20
|
+
}
|
|
21
|
+
const chunkSubsets = availableSubsetKeys.filter(isChunkSubset).sort(compareChunkSubsets);
|
|
22
|
+
return chunkSubsets.length === 0 ? [requestedSubset] : chunkSubsets;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
// src/base.ts
|
|
26
|
+
var loadedFonts = {};
|
|
27
|
+
var withResolvers = function() {
|
|
28
|
+
let resolve;
|
|
29
|
+
let reject;
|
|
30
|
+
const promise = new Promise((res, rej) => {
|
|
31
|
+
resolve = res;
|
|
32
|
+
reject = rej;
|
|
33
|
+
});
|
|
34
|
+
return { promise, resolve, reject };
|
|
35
|
+
};
|
|
36
|
+
var loadFontFaceOrTimeoutAfter20Seconds = (fontFace) => {
|
|
37
|
+
const timeout = withResolvers();
|
|
38
|
+
const int = setTimeout(() => {
|
|
39
|
+
timeout.reject(new Error("Timed out loading Google Font"));
|
|
40
|
+
}, 18000);
|
|
41
|
+
return Promise.race([
|
|
42
|
+
fontFace.load().then(() => {
|
|
43
|
+
clearTimeout(int);
|
|
44
|
+
}),
|
|
45
|
+
timeout.promise
|
|
46
|
+
]);
|
|
47
|
+
};
|
|
48
|
+
var loadFonts = (meta, style, options) => {
|
|
49
|
+
const weightsAndSubsetsAreSpecified = Array.isArray(options?.weights) && Array.isArray(options?.subsets) && options.weights.length > 0 && options.subsets.length > 0;
|
|
50
|
+
if (NoReactInternals.ENABLE_V5_BREAKING_CHANGES && !weightsAndSubsetsAreSpecified) {
|
|
51
|
+
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.");
|
|
52
|
+
}
|
|
53
|
+
const promises = [];
|
|
54
|
+
const styles = style ? [style] : Object.keys(meta.fonts);
|
|
55
|
+
let fontsLoaded = 0;
|
|
56
|
+
for (const style2 of styles) {
|
|
57
|
+
if (typeof FontFace === "undefined") {
|
|
58
|
+
continue;
|
|
59
|
+
}
|
|
60
|
+
if (!meta.fonts[style2]) {
|
|
61
|
+
throw new Error(`The font ${meta.fontFamily} does not have a style ${style2}`);
|
|
62
|
+
}
|
|
63
|
+
const weights = options?.weights ?? Object.keys(meta.fonts[style2]);
|
|
64
|
+
for (const weight of weights) {
|
|
65
|
+
if (!meta.fonts[style2][weight]) {
|
|
66
|
+
throw new Error(`The font ${meta.fontFamily} does not have a weight ${weight} in style ${style2}`);
|
|
67
|
+
}
|
|
68
|
+
const requestedSubsets = options?.subsets ?? Object.keys(meta.fonts[style2][weight]);
|
|
69
|
+
const availableSubsetKeys = Object.keys(meta.fonts[style2][weight]);
|
|
70
|
+
const subsets = [
|
|
71
|
+
...new Set(requestedSubsets.flatMap((requestedSubset) => resolveFontSubsetKeys({
|
|
72
|
+
availableSubsetKeys,
|
|
73
|
+
metaSubsets: meta.subsets,
|
|
74
|
+
requestedSubset
|
|
75
|
+
})))
|
|
76
|
+
];
|
|
77
|
+
for (const subset of subsets) {
|
|
78
|
+
let font = meta.fonts[style2]?.[weight]?.[subset];
|
|
79
|
+
if (!font) {
|
|
80
|
+
throw new Error(`weight: ${weight} subset: ${subset} is not available for '${meta.fontFamily}'`);
|
|
81
|
+
}
|
|
82
|
+
let fontKey = `${meta.fontFamily}-${style2}-${weight}-${subset}`;
|
|
83
|
+
const previousPromise = loadedFonts[fontKey];
|
|
84
|
+
if (previousPromise) {
|
|
85
|
+
promises.push(previousPromise);
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
const baseLabel = `Fetching ${meta.fontFamily} font ${JSON.stringify({
|
|
89
|
+
style: style2,
|
|
90
|
+
weight,
|
|
91
|
+
subset
|
|
92
|
+
})}`;
|
|
93
|
+
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`;
|
|
94
|
+
const handle = delayRender(label, { timeoutInMilliseconds: 60000 });
|
|
95
|
+
fontsLoaded++;
|
|
96
|
+
const fontFace = new FontFace(meta.fontFamily, `url(${font}) format('woff2')`, {
|
|
97
|
+
weight,
|
|
98
|
+
style: style2,
|
|
99
|
+
unicodeRange: meta.unicodeRanges[subset]
|
|
100
|
+
});
|
|
101
|
+
let attempts = 2;
|
|
102
|
+
const tryToLoad = () => {
|
|
103
|
+
if (fontFace.status === "loaded") {
|
|
104
|
+
continueRender(handle);
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
const promise = loadFontFaceOrTimeoutAfter20Seconds(fontFace).then(() => {
|
|
108
|
+
(options?.document ?? document).fonts.add(fontFace);
|
|
109
|
+
continueRender(handle);
|
|
110
|
+
}).catch((err) => {
|
|
111
|
+
loadedFonts[fontKey] = undefined;
|
|
112
|
+
if (attempts === 0) {
|
|
113
|
+
throw err;
|
|
114
|
+
} else {
|
|
115
|
+
attempts--;
|
|
116
|
+
tryToLoad();
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
loadedFonts[fontKey] = promise;
|
|
120
|
+
promises.push(promise);
|
|
121
|
+
};
|
|
122
|
+
tryToLoad();
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
if (fontsLoaded > 20 && !options?.ignoreTooManyRequestsWarning) {
|
|
126
|
+
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".`);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return {
|
|
130
|
+
fontFamily: meta.fontFamily,
|
|
131
|
+
fonts: meta.fonts,
|
|
132
|
+
unicodeRanges: meta.unicodeRanges,
|
|
133
|
+
waitUntilDone: () => Promise.all(promises).then(() => {
|
|
134
|
+
return;
|
|
135
|
+
})
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
// src/Pliant.ts
|
|
140
|
+
var getInfo = () => ({
|
|
141
|
+
fontFamily: "Pliant",
|
|
142
|
+
importName: "Pliant",
|
|
143
|
+
version: "v1",
|
|
144
|
+
url: "https://fonts.googleapis.com/css2?family=Pliant: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",
|
|
145
|
+
unicodeRanges: {
|
|
146
|
+
"cyrillic-ext": "U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F",
|
|
147
|
+
cyrillic: "U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116",
|
|
148
|
+
"greek-ext": "U+1F00-1FFF",
|
|
149
|
+
greek: "U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF",
|
|
150
|
+
"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",
|
|
151
|
+
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"
|
|
152
|
+
},
|
|
153
|
+
fonts: {
|
|
154
|
+
italic: {
|
|
155
|
+
"100": {
|
|
156
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-HxdgGE.woff2",
|
|
157
|
+
cyrillic: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL8XxdgGE.woff2",
|
|
158
|
+
"greek-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-XxdgGE.woff2",
|
|
159
|
+
greek: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9nxdgGE.woff2",
|
|
160
|
+
"latin-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-3xdgGE.woff2",
|
|
161
|
+
latin: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9Xxd.woff2"
|
|
162
|
+
},
|
|
163
|
+
"200": {
|
|
164
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-HxdgGE.woff2",
|
|
165
|
+
cyrillic: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL8XxdgGE.woff2",
|
|
166
|
+
"greek-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-XxdgGE.woff2",
|
|
167
|
+
greek: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9nxdgGE.woff2",
|
|
168
|
+
"latin-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-3xdgGE.woff2",
|
|
169
|
+
latin: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9Xxd.woff2"
|
|
170
|
+
},
|
|
171
|
+
"300": {
|
|
172
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-HxdgGE.woff2",
|
|
173
|
+
cyrillic: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL8XxdgGE.woff2",
|
|
174
|
+
"greek-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-XxdgGE.woff2",
|
|
175
|
+
greek: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9nxdgGE.woff2",
|
|
176
|
+
"latin-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-3xdgGE.woff2",
|
|
177
|
+
latin: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9Xxd.woff2"
|
|
178
|
+
},
|
|
179
|
+
"400": {
|
|
180
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-HxdgGE.woff2",
|
|
181
|
+
cyrillic: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL8XxdgGE.woff2",
|
|
182
|
+
"greek-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-XxdgGE.woff2",
|
|
183
|
+
greek: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9nxdgGE.woff2",
|
|
184
|
+
"latin-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-3xdgGE.woff2",
|
|
185
|
+
latin: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9Xxd.woff2"
|
|
186
|
+
},
|
|
187
|
+
"500": {
|
|
188
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-HxdgGE.woff2",
|
|
189
|
+
cyrillic: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL8XxdgGE.woff2",
|
|
190
|
+
"greek-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-XxdgGE.woff2",
|
|
191
|
+
greek: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9nxdgGE.woff2",
|
|
192
|
+
"latin-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-3xdgGE.woff2",
|
|
193
|
+
latin: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9Xxd.woff2"
|
|
194
|
+
},
|
|
195
|
+
"600": {
|
|
196
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-HxdgGE.woff2",
|
|
197
|
+
cyrillic: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL8XxdgGE.woff2",
|
|
198
|
+
"greek-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-XxdgGE.woff2",
|
|
199
|
+
greek: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9nxdgGE.woff2",
|
|
200
|
+
"latin-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-3xdgGE.woff2",
|
|
201
|
+
latin: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9Xxd.woff2"
|
|
202
|
+
},
|
|
203
|
+
"700": {
|
|
204
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-HxdgGE.woff2",
|
|
205
|
+
cyrillic: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL8XxdgGE.woff2",
|
|
206
|
+
"greek-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-XxdgGE.woff2",
|
|
207
|
+
greek: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9nxdgGE.woff2",
|
|
208
|
+
"latin-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-3xdgGE.woff2",
|
|
209
|
+
latin: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9Xxd.woff2"
|
|
210
|
+
},
|
|
211
|
+
"800": {
|
|
212
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-HxdgGE.woff2",
|
|
213
|
+
cyrillic: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL8XxdgGE.woff2",
|
|
214
|
+
"greek-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-XxdgGE.woff2",
|
|
215
|
+
greek: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9nxdgGE.woff2",
|
|
216
|
+
"latin-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-3xdgGE.woff2",
|
|
217
|
+
latin: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9Xxd.woff2"
|
|
218
|
+
},
|
|
219
|
+
"900": {
|
|
220
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-HxdgGE.woff2",
|
|
221
|
+
cyrillic: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL8XxdgGE.woff2",
|
|
222
|
+
"greek-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-XxdgGE.woff2",
|
|
223
|
+
greek: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9nxdgGE.woff2",
|
|
224
|
+
"latin-ext": "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-3xdgGE.woff2",
|
|
225
|
+
latin: "https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9Xxd.woff2"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
normal: {
|
|
229
|
+
"100": {
|
|
230
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW-792RZ.woff2",
|
|
231
|
+
cyrillic: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWa792RZ.woff2",
|
|
232
|
+
"greek-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW6792RZ.woff2",
|
|
233
|
+
greek: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWG792RZ.woff2",
|
|
234
|
+
"latin-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWy792RZ.woff2",
|
|
235
|
+
latin: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWK79w.woff2"
|
|
236
|
+
},
|
|
237
|
+
"200": {
|
|
238
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW-792RZ.woff2",
|
|
239
|
+
cyrillic: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWa792RZ.woff2",
|
|
240
|
+
"greek-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW6792RZ.woff2",
|
|
241
|
+
greek: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWG792RZ.woff2",
|
|
242
|
+
"latin-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWy792RZ.woff2",
|
|
243
|
+
latin: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWK79w.woff2"
|
|
244
|
+
},
|
|
245
|
+
"300": {
|
|
246
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW-792RZ.woff2",
|
|
247
|
+
cyrillic: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWa792RZ.woff2",
|
|
248
|
+
"greek-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW6792RZ.woff2",
|
|
249
|
+
greek: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWG792RZ.woff2",
|
|
250
|
+
"latin-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWy792RZ.woff2",
|
|
251
|
+
latin: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWK79w.woff2"
|
|
252
|
+
},
|
|
253
|
+
"400": {
|
|
254
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW-792RZ.woff2",
|
|
255
|
+
cyrillic: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWa792RZ.woff2",
|
|
256
|
+
"greek-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW6792RZ.woff2",
|
|
257
|
+
greek: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWG792RZ.woff2",
|
|
258
|
+
"latin-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWy792RZ.woff2",
|
|
259
|
+
latin: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWK79w.woff2"
|
|
260
|
+
},
|
|
261
|
+
"500": {
|
|
262
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW-792RZ.woff2",
|
|
263
|
+
cyrillic: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWa792RZ.woff2",
|
|
264
|
+
"greek-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW6792RZ.woff2",
|
|
265
|
+
greek: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWG792RZ.woff2",
|
|
266
|
+
"latin-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWy792RZ.woff2",
|
|
267
|
+
latin: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWK79w.woff2"
|
|
268
|
+
},
|
|
269
|
+
"600": {
|
|
270
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW-792RZ.woff2",
|
|
271
|
+
cyrillic: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWa792RZ.woff2",
|
|
272
|
+
"greek-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW6792RZ.woff2",
|
|
273
|
+
greek: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWG792RZ.woff2",
|
|
274
|
+
"latin-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWy792RZ.woff2",
|
|
275
|
+
latin: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWK79w.woff2"
|
|
276
|
+
},
|
|
277
|
+
"700": {
|
|
278
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW-792RZ.woff2",
|
|
279
|
+
cyrillic: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWa792RZ.woff2",
|
|
280
|
+
"greek-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW6792RZ.woff2",
|
|
281
|
+
greek: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWG792RZ.woff2",
|
|
282
|
+
"latin-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWy792RZ.woff2",
|
|
283
|
+
latin: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWK79w.woff2"
|
|
284
|
+
},
|
|
285
|
+
"800": {
|
|
286
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW-792RZ.woff2",
|
|
287
|
+
cyrillic: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWa792RZ.woff2",
|
|
288
|
+
"greek-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW6792RZ.woff2",
|
|
289
|
+
greek: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWG792RZ.woff2",
|
|
290
|
+
"latin-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWy792RZ.woff2",
|
|
291
|
+
latin: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWK79w.woff2"
|
|
292
|
+
},
|
|
293
|
+
"900": {
|
|
294
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW-792RZ.woff2",
|
|
295
|
+
cyrillic: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWa792RZ.woff2",
|
|
296
|
+
"greek-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW6792RZ.woff2",
|
|
297
|
+
greek: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWG792RZ.woff2",
|
|
298
|
+
"latin-ext": "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWy792RZ.woff2",
|
|
299
|
+
latin: "https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWK79w.woff2"
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
subsets: [
|
|
304
|
+
"cyrillic",
|
|
305
|
+
"cyrillic-ext",
|
|
306
|
+
"greek",
|
|
307
|
+
"greek-ext",
|
|
308
|
+
"latin",
|
|
309
|
+
"latin-ext"
|
|
310
|
+
]
|
|
311
|
+
});
|
|
312
|
+
var fontFamily = "Pliant";
|
|
313
|
+
var loadFont = (style, options) => {
|
|
314
|
+
return loadFonts(getInfo(), style, options);
|
|
315
|
+
};
|
|
316
|
+
export {
|
|
317
|
+
loadFont,
|
|
318
|
+
getInfo,
|
|
319
|
+
fontFamily
|
|
320
|
+
};
|
package/dist/esm/index.mjs
CHANGED
|
@@ -204,6 +204,11 @@ export const getAvailableFonts = () => [
|
|
|
204
204
|
importName: 'Alice',
|
|
205
205
|
load: () => import('./Alice.mjs'),
|
|
206
206
|
},
|
|
207
|
+
{
|
|
208
|
+
fontFamily: 'Alien Block',
|
|
209
|
+
importName: 'AlienBlock',
|
|
210
|
+
load: () => import('./AlienBlock.mjs'),
|
|
211
|
+
},
|
|
207
212
|
{
|
|
208
213
|
fontFamily: 'Alike',
|
|
209
214
|
importName: 'Alike',
|
|
@@ -6740,6 +6745,11 @@ export const getAvailableFonts = () => [
|
|
|
6740
6745
|
importName: 'PlaypenSansThai',
|
|
6741
6746
|
load: () => import('./PlaypenSansThai.mjs'),
|
|
6742
6747
|
},
|
|
6748
|
+
{
|
|
6749
|
+
fontFamily: 'Pliant',
|
|
6750
|
+
importName: 'Pliant',
|
|
6751
|
+
load: () => import('./Pliant.mjs'),
|
|
6752
|
+
},
|
|
6743
6753
|
{
|
|
6744
6754
|
fontFamily: 'Plus Jakarta Sans',
|
|
6745
6755
|
importName: 'PlusJakartaSans',
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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.476",
|
|
7
7
|
"description": "Use Google Fonts in Remotion",
|
|
8
8
|
"main": "dist/cjs/index.js",
|
|
9
9
|
"module": "dist/esm/index.mjs",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"remotion": "4.0.
|
|
19
|
+
"remotion": "4.0.476"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/css-font-loading-module": "0.0.14",
|
|
@@ -150,6 +150,9 @@
|
|
|
150
150
|
"Alice": [
|
|
151
151
|
"dist/cjs/Alice.d.ts"
|
|
152
152
|
],
|
|
153
|
+
"AlienBlock": [
|
|
154
|
+
"dist/cjs/AlienBlock.d.ts"
|
|
155
|
+
],
|
|
153
156
|
"Alike": [
|
|
154
157
|
"dist/cjs/Alike.d.ts"
|
|
155
158
|
],
|
|
@@ -4071,6 +4074,9 @@
|
|
|
4071
4074
|
"PlaypenSansThai": [
|
|
4072
4075
|
"dist/cjs/PlaypenSansThai.d.ts"
|
|
4073
4076
|
],
|
|
4077
|
+
"Pliant": [
|
|
4078
|
+
"dist/cjs/Pliant.d.ts"
|
|
4079
|
+
],
|
|
4074
4080
|
"PlusJakartaSans": [
|
|
4075
4081
|
"dist/cjs/PlusJakartaSans.d.ts"
|
|
4076
4082
|
],
|