@remotion/google-fonts 4.0.473 → 4.0.475

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.
@@ -0,0 +1,188 @@
1
+ export declare const getInfo: () => {
2
+ fontFamily: string;
3
+ importName: string;
4
+ version: string;
5
+ url: string;
6
+ unicodeRanges: {
7
+ 'cyrillic-ext': string;
8
+ cyrillic: string;
9
+ 'greek-ext': string;
10
+ greek: string;
11
+ 'latin-ext': string;
12
+ latin: string;
13
+ };
14
+ fonts: {
15
+ italic: {
16
+ '100': {
17
+ 'cyrillic-ext': string;
18
+ cyrillic: string;
19
+ 'greek-ext': string;
20
+ greek: string;
21
+ 'latin-ext': string;
22
+ latin: string;
23
+ };
24
+ '200': {
25
+ 'cyrillic-ext': string;
26
+ cyrillic: string;
27
+ 'greek-ext': string;
28
+ greek: string;
29
+ 'latin-ext': string;
30
+ latin: string;
31
+ };
32
+ '300': {
33
+ 'cyrillic-ext': string;
34
+ cyrillic: string;
35
+ 'greek-ext': string;
36
+ greek: string;
37
+ 'latin-ext': string;
38
+ latin: string;
39
+ };
40
+ '400': {
41
+ 'cyrillic-ext': string;
42
+ cyrillic: string;
43
+ 'greek-ext': string;
44
+ greek: string;
45
+ 'latin-ext': string;
46
+ latin: string;
47
+ };
48
+ '500': {
49
+ 'cyrillic-ext': string;
50
+ cyrillic: string;
51
+ 'greek-ext': string;
52
+ greek: string;
53
+ 'latin-ext': string;
54
+ latin: string;
55
+ };
56
+ '600': {
57
+ 'cyrillic-ext': string;
58
+ cyrillic: string;
59
+ 'greek-ext': string;
60
+ greek: string;
61
+ 'latin-ext': string;
62
+ latin: string;
63
+ };
64
+ '700': {
65
+ 'cyrillic-ext': string;
66
+ cyrillic: string;
67
+ 'greek-ext': string;
68
+ greek: string;
69
+ 'latin-ext': string;
70
+ latin: string;
71
+ };
72
+ '800': {
73
+ 'cyrillic-ext': string;
74
+ cyrillic: string;
75
+ 'greek-ext': string;
76
+ greek: string;
77
+ 'latin-ext': string;
78
+ latin: string;
79
+ };
80
+ '900': {
81
+ 'cyrillic-ext': string;
82
+ cyrillic: string;
83
+ 'greek-ext': string;
84
+ greek: string;
85
+ 'latin-ext': string;
86
+ latin: string;
87
+ };
88
+ };
89
+ normal: {
90
+ '100': {
91
+ 'cyrillic-ext': string;
92
+ cyrillic: string;
93
+ 'greek-ext': string;
94
+ greek: string;
95
+ 'latin-ext': string;
96
+ latin: string;
97
+ };
98
+ '200': {
99
+ 'cyrillic-ext': string;
100
+ cyrillic: string;
101
+ 'greek-ext': string;
102
+ greek: string;
103
+ 'latin-ext': string;
104
+ latin: string;
105
+ };
106
+ '300': {
107
+ 'cyrillic-ext': string;
108
+ cyrillic: string;
109
+ 'greek-ext': string;
110
+ greek: string;
111
+ 'latin-ext': string;
112
+ latin: string;
113
+ };
114
+ '400': {
115
+ 'cyrillic-ext': string;
116
+ cyrillic: string;
117
+ 'greek-ext': string;
118
+ greek: string;
119
+ 'latin-ext': string;
120
+ latin: string;
121
+ };
122
+ '500': {
123
+ 'cyrillic-ext': string;
124
+ cyrillic: string;
125
+ 'greek-ext': string;
126
+ greek: string;
127
+ 'latin-ext': string;
128
+ latin: string;
129
+ };
130
+ '600': {
131
+ 'cyrillic-ext': string;
132
+ cyrillic: string;
133
+ 'greek-ext': string;
134
+ greek: string;
135
+ 'latin-ext': string;
136
+ latin: string;
137
+ };
138
+ '700': {
139
+ 'cyrillic-ext': string;
140
+ cyrillic: string;
141
+ 'greek-ext': string;
142
+ greek: string;
143
+ 'latin-ext': string;
144
+ latin: string;
145
+ };
146
+ '800': {
147
+ 'cyrillic-ext': string;
148
+ cyrillic: string;
149
+ 'greek-ext': string;
150
+ greek: string;
151
+ 'latin-ext': string;
152
+ latin: string;
153
+ };
154
+ '900': {
155
+ 'cyrillic-ext': string;
156
+ cyrillic: string;
157
+ 'greek-ext': string;
158
+ greek: string;
159
+ 'latin-ext': string;
160
+ latin: string;
161
+ };
162
+ };
163
+ };
164
+ subsets: string[];
165
+ };
166
+ export declare const fontFamily: "Pliant";
167
+ type Variants = {
168
+ italic: {
169
+ weights: '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
170
+ subsets: 'cyrillic' | 'cyrillic-ext' | 'greek' | 'greek-ext' | 'latin' | 'latin-ext';
171
+ };
172
+ normal: {
173
+ weights: '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
174
+ subsets: 'cyrillic' | 'cyrillic-ext' | 'greek' | 'greek-ext' | 'latin' | 'latin-ext';
175
+ };
176
+ };
177
+ export declare const loadFont: <T extends keyof Variants>(style?: T | undefined, options?: {
178
+ weights?: Variants[T]["weights"][] | undefined;
179
+ subsets?: Variants[T]["subsets"][] | undefined;
180
+ document?: Document | undefined;
181
+ ignoreTooManyRequestsWarning?: boolean | undefined;
182
+ } | undefined) => {
183
+ fontFamily: string;
184
+ fonts: Record<string, Record<string, Record<string, string>>>;
185
+ unicodeRanges: Record<string, string>;
186
+ waitUntilDone: () => Promise<undefined>;
187
+ };
188
+ export {};
@@ -0,0 +1,182 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.loadFont = exports.fontFamily = exports.getInfo = void 0;
4
+ const base_1 = require("./base");
5
+ const getInfo = () => ({
6
+ fontFamily: 'Pliant',
7
+ importName: 'Pliant',
8
+ version: 'v1',
9
+ 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',
10
+ unicodeRanges: {
11
+ 'cyrillic-ext': 'U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F',
12
+ cyrillic: 'U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116',
13
+ 'greek-ext': 'U+1F00-1FFF',
14
+ greek: 'U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF',
15
+ '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',
16
+ 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',
17
+ },
18
+ fonts: {
19
+ italic: {
20
+ '100': {
21
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-HxdgGE.woff2',
22
+ cyrillic: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL8XxdgGE.woff2',
23
+ 'greek-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-XxdgGE.woff2',
24
+ greek: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9nxdgGE.woff2',
25
+ 'latin-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-3xdgGE.woff2',
26
+ latin: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9Xxd.woff2',
27
+ },
28
+ '200': {
29
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-HxdgGE.woff2',
30
+ cyrillic: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL8XxdgGE.woff2',
31
+ 'greek-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-XxdgGE.woff2',
32
+ greek: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9nxdgGE.woff2',
33
+ 'latin-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-3xdgGE.woff2',
34
+ latin: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9Xxd.woff2',
35
+ },
36
+ '300': {
37
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-HxdgGE.woff2',
38
+ cyrillic: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL8XxdgGE.woff2',
39
+ 'greek-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-XxdgGE.woff2',
40
+ greek: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9nxdgGE.woff2',
41
+ 'latin-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-3xdgGE.woff2',
42
+ latin: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9Xxd.woff2',
43
+ },
44
+ '400': {
45
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-HxdgGE.woff2',
46
+ cyrillic: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL8XxdgGE.woff2',
47
+ 'greek-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-XxdgGE.woff2',
48
+ greek: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9nxdgGE.woff2',
49
+ 'latin-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-3xdgGE.woff2',
50
+ latin: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9Xxd.woff2',
51
+ },
52
+ '500': {
53
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-HxdgGE.woff2',
54
+ cyrillic: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL8XxdgGE.woff2',
55
+ 'greek-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-XxdgGE.woff2',
56
+ greek: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9nxdgGE.woff2',
57
+ 'latin-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-3xdgGE.woff2',
58
+ latin: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9Xxd.woff2',
59
+ },
60
+ '600': {
61
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-HxdgGE.woff2',
62
+ cyrillic: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL8XxdgGE.woff2',
63
+ 'greek-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-XxdgGE.woff2',
64
+ greek: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9nxdgGE.woff2',
65
+ 'latin-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-3xdgGE.woff2',
66
+ latin: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9Xxd.woff2',
67
+ },
68
+ '700': {
69
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-HxdgGE.woff2',
70
+ cyrillic: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL8XxdgGE.woff2',
71
+ 'greek-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-XxdgGE.woff2',
72
+ greek: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9nxdgGE.woff2',
73
+ 'latin-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-3xdgGE.woff2',
74
+ latin: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9Xxd.woff2',
75
+ },
76
+ '800': {
77
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-HxdgGE.woff2',
78
+ cyrillic: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL8XxdgGE.woff2',
79
+ 'greek-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-XxdgGE.woff2',
80
+ greek: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9nxdgGE.woff2',
81
+ 'latin-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-3xdgGE.woff2',
82
+ latin: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9Xxd.woff2',
83
+ },
84
+ '900': {
85
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-HxdgGE.woff2',
86
+ cyrillic: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL8XxdgGE.woff2',
87
+ 'greek-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-XxdgGE.woff2',
88
+ greek: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9nxdgGE.woff2',
89
+ 'latin-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL-3xdgGE.woff2',
90
+ latin: 'https://fonts.gstatic.com/s/pliant/v1/R70EjyYdl_WLNKbQNkGzkMJ8xoj-WpW5VSeL9Xxd.woff2',
91
+ },
92
+ },
93
+ normal: {
94
+ '100': {
95
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW-792RZ.woff2',
96
+ cyrillic: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWa792RZ.woff2',
97
+ 'greek-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW6792RZ.woff2',
98
+ greek: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWG792RZ.woff2',
99
+ 'latin-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWy792RZ.woff2',
100
+ latin: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWK79w.woff2',
101
+ },
102
+ '200': {
103
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW-792RZ.woff2',
104
+ cyrillic: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWa792RZ.woff2',
105
+ 'greek-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW6792RZ.woff2',
106
+ greek: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWG792RZ.woff2',
107
+ 'latin-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWy792RZ.woff2',
108
+ latin: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWK79w.woff2',
109
+ },
110
+ '300': {
111
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW-792RZ.woff2',
112
+ cyrillic: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWa792RZ.woff2',
113
+ 'greek-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW6792RZ.woff2',
114
+ greek: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWG792RZ.woff2',
115
+ 'latin-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWy792RZ.woff2',
116
+ latin: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWK79w.woff2',
117
+ },
118
+ '400': {
119
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW-792RZ.woff2',
120
+ cyrillic: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWa792RZ.woff2',
121
+ 'greek-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW6792RZ.woff2',
122
+ greek: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWG792RZ.woff2',
123
+ 'latin-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWy792RZ.woff2',
124
+ latin: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWK79w.woff2',
125
+ },
126
+ '500': {
127
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW-792RZ.woff2',
128
+ cyrillic: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWa792RZ.woff2',
129
+ 'greek-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW6792RZ.woff2',
130
+ greek: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWG792RZ.woff2',
131
+ 'latin-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWy792RZ.woff2',
132
+ latin: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWK79w.woff2',
133
+ },
134
+ '600': {
135
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW-792RZ.woff2',
136
+ cyrillic: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWa792RZ.woff2',
137
+ 'greek-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW6792RZ.woff2',
138
+ greek: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWG792RZ.woff2',
139
+ 'latin-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWy792RZ.woff2',
140
+ latin: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWK79w.woff2',
141
+ },
142
+ '700': {
143
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW-792RZ.woff2',
144
+ cyrillic: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWa792RZ.woff2',
145
+ 'greek-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW6792RZ.woff2',
146
+ greek: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWG792RZ.woff2',
147
+ 'latin-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWy792RZ.woff2',
148
+ latin: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWK79w.woff2',
149
+ },
150
+ '800': {
151
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW-792RZ.woff2',
152
+ cyrillic: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWa792RZ.woff2',
153
+ 'greek-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW6792RZ.woff2',
154
+ greek: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWG792RZ.woff2',
155
+ 'latin-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWy792RZ.woff2',
156
+ latin: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWK79w.woff2',
157
+ },
158
+ '900': {
159
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW-792RZ.woff2',
160
+ cyrillic: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWa792RZ.woff2',
161
+ 'greek-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jW6792RZ.woff2',
162
+ greek: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWG792RZ.woff2',
163
+ 'latin-ext': 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWy792RZ.woff2',
164
+ latin: 'https://fonts.gstatic.com/s/pliant/v1/R70GjyYdl_WLNKb6P3NQcLsvUCb5T137jWK79w.woff2',
165
+ },
166
+ },
167
+ },
168
+ subsets: [
169
+ 'cyrillic',
170
+ 'cyrillic-ext',
171
+ 'greek',
172
+ 'greek-ext',
173
+ 'latin',
174
+ 'latin-ext',
175
+ ],
176
+ });
177
+ exports.getInfo = getInfo;
178
+ exports.fontFamily = 'Pliant';
179
+ const loadFont = (style, options) => {
180
+ return (0, base_1.loadFonts)((0, exports.getInfo)(), style, options);
181
+ };
182
+ exports.loadFont = loadFont;
package/dist/cjs/index.js CHANGED
@@ -242,6 +242,11 @@ const getAvailableFonts = () => [
242
242
  importName: 'Alice',
243
243
  load: () => Promise.resolve().then(() => __importStar(require('./Alice'))),
244
244
  },
245
+ {
246
+ fontFamily: 'Alien Block',
247
+ importName: 'AlienBlock',
248
+ load: () => Promise.resolve().then(() => __importStar(require('./AlienBlock'))),
249
+ },
245
250
  {
246
251
  fontFamily: 'Alike',
247
252
  importName: 'Alike',
@@ -6777,6 +6782,11 @@ const getAvailableFonts = () => [
6777
6782
  importName: 'PlaypenSansThai',
6778
6783
  load: () => Promise.resolve().then(() => __importStar(require('./PlaypenSansThai'))),
6779
6784
  },
6785
+ {
6786
+ fontFamily: 'Pliant',
6787
+ importName: 'Pliant',
6788
+ load: () => Promise.resolve().then(() => __importStar(require('./Pliant'))),
6789
+ },
6780
6790
  {
6781
6791
  fontFamily: 'Plus Jakarta Sans',
6782
6792
  importName: 'PlusJakartaSans',
@@ -0,0 +1,167 @@
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/AlienBlock.ts
140
+ var getInfo = () => ({
141
+ fontFamily: "Alien Block",
142
+ importName: "AlienBlock",
143
+ version: "v2",
144
+ url: "https://fonts.googleapis.com/css2?family=Alien+Block:ital,wght@0,400",
145
+ unicodeRanges: {
146
+ "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",
147
+ 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"
148
+ },
149
+ fonts: {
150
+ normal: {
151
+ "400": {
152
+ "latin-ext": "https://fonts.gstatic.com/s/alienblock/v2/JIA3UVFjdXpFsgA7S8BAOyOrNTQfeQ.woff2",
153
+ latin: "https://fonts.gstatic.com/s/alienblock/v2/JIA3UVFjdXpFsgA7S8BAOyOlNTQ.woff2"
154
+ }
155
+ }
156
+ },
157
+ subsets: ["latin", "latin-ext"]
158
+ });
159
+ var fontFamily = "Alien Block";
160
+ var loadFont = (style, options) => {
161
+ return loadFonts(getInfo(), style, options);
162
+ };
163
+ export {
164
+ loadFont,
165
+ getInfo,
166
+ fontFamily
167
+ };