@remotion/google-fonts 4.0.443 → 4.0.444

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.
@@ -5,83 +5,100 @@ const base_1 = require("./base");
5
5
  const getInfo = () => ({
6
6
  fontFamily: 'Zalando Sans SemiExpanded',
7
7
  importName: 'ZalandoSansSemiExpanded',
8
- version: 'v2',
8
+ version: 'v3',
9
9
  url: 'https://fonts.googleapis.com/css2?family=Zalando+Sans+SemiExpanded:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900',
10
10
  unicodeRanges: {
11
+ 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',
11
12
  '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',
12
13
  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',
13
14
  },
14
15
  fonts: {
15
16
  italic: {
16
17
  '200': {
17
- 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7e79_Xjg.woff2',
18
- latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7db9_.woff2',
18
+ vietnamese: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7er9_Xjg.woff2',
19
+ 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7e79_Xjg.woff2',
20
+ latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7db9_.woff2',
19
21
  },
20
22
  '300': {
21
- 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7e79_Xjg.woff2',
22
- latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7db9_.woff2',
23
+ vietnamese: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7er9_Xjg.woff2',
24
+ 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7e79_Xjg.woff2',
25
+ latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7db9_.woff2',
23
26
  },
24
27
  '400': {
25
- 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7e79_Xjg.woff2',
26
- latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7db9_.woff2',
28
+ vietnamese: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7er9_Xjg.woff2',
29
+ 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7e79_Xjg.woff2',
30
+ latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7db9_.woff2',
27
31
  },
28
32
  '500': {
29
- 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7e79_Xjg.woff2',
30
- latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7db9_.woff2',
33
+ vietnamese: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7er9_Xjg.woff2',
34
+ 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7e79_Xjg.woff2',
35
+ latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7db9_.woff2',
31
36
  },
32
37
  '600': {
33
- 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7e79_Xjg.woff2',
34
- latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7db9_.woff2',
38
+ vietnamese: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7er9_Xjg.woff2',
39
+ 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7e79_Xjg.woff2',
40
+ latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7db9_.woff2',
35
41
  },
36
42
  '700': {
37
- 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7e79_Xjg.woff2',
38
- latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7db9_.woff2',
43
+ vietnamese: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7er9_Xjg.woff2',
44
+ 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7e79_Xjg.woff2',
45
+ latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7db9_.woff2',
39
46
  },
40
47
  '800': {
41
- 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7e79_Xjg.woff2',
42
- latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7db9_.woff2',
48
+ vietnamese: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7er9_Xjg.woff2',
49
+ 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7e79_Xjg.woff2',
50
+ latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7db9_.woff2',
43
51
  },
44
52
  '900': {
45
- 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7e79_Xjg.woff2',
46
- latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7db9_.woff2',
53
+ vietnamese: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7er9_Xjg.woff2',
54
+ 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7e79_Xjg.woff2',
55
+ latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLUKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xS7db9_.woff2',
47
56
  },
48
57
  },
49
58
  normal: {
50
59
  '200': {
51
- 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x-Ld6d7.woff2',
52
- latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xGLdw.woff2',
60
+ vietnamese: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x6Ld6d7.woff2',
61
+ 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x-Ld6d7.woff2',
62
+ latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xGLdw.woff2',
53
63
  },
54
64
  '300': {
55
- 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x-Ld6d7.woff2',
56
- latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xGLdw.woff2',
65
+ vietnamese: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x6Ld6d7.woff2',
66
+ 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x-Ld6d7.woff2',
67
+ latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xGLdw.woff2',
57
68
  },
58
69
  '400': {
59
- 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x-Ld6d7.woff2',
60
- latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xGLdw.woff2',
70
+ vietnamese: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x6Ld6d7.woff2',
71
+ 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x-Ld6d7.woff2',
72
+ latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xGLdw.woff2',
61
73
  },
62
74
  '500': {
63
- 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x-Ld6d7.woff2',
64
- latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xGLdw.woff2',
75
+ vietnamese: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x6Ld6d7.woff2',
76
+ 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x-Ld6d7.woff2',
77
+ latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xGLdw.woff2',
65
78
  },
66
79
  '600': {
67
- 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x-Ld6d7.woff2',
68
- latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xGLdw.woff2',
80
+ vietnamese: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x6Ld6d7.woff2',
81
+ 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x-Ld6d7.woff2',
82
+ latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xGLdw.woff2',
69
83
  },
70
84
  '700': {
71
- 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x-Ld6d7.woff2',
72
- latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xGLdw.woff2',
85
+ vietnamese: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x6Ld6d7.woff2',
86
+ 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x-Ld6d7.woff2',
87
+ latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xGLdw.woff2',
73
88
  },
74
89
  '800': {
75
- 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x-Ld6d7.woff2',
76
- latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xGLdw.woff2',
90
+ vietnamese: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x6Ld6d7.woff2',
91
+ 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x-Ld6d7.woff2',
92
+ latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xGLdw.woff2',
77
93
  },
78
94
  '900': {
79
- 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x-Ld6d7.woff2',
80
- latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v2/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xGLdw.woff2',
95
+ vietnamese: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x6Ld6d7.woff2',
96
+ 'latin-ext': 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5x-Ld6d7.woff2',
97
+ latin: 'https://fonts.gstatic.com/s/zalandosanssemiexpanded/v3/6qLSKYcHuh3msE9OaXROVVclRRa-ClZSEipa2hrE5xGLdw.woff2',
81
98
  },
82
99
  },
83
100
  },
84
- subsets: ['latin', 'latin-ext'],
101
+ subsets: ['latin', 'latin-ext', 'vietnamese'],
85
102
  });
86
103
  exports.getInfo = getInfo;
87
104
  exports.fontFamily = 'Zalando Sans SemiExpanded';
package/dist/cjs/index.js CHANGED
@@ -787,6 +787,11 @@ const getAvailableFonts = () => [
787
787
  importName: 'BIZUDPMincho',
788
788
  load: () => Promise.resolve().then(() => __importStar(require('./BIZUDPMincho'))),
789
789
  },
790
+ {
791
+ fontFamily: 'BJ Cree',
792
+ importName: 'BJCree',
793
+ load: () => Promise.resolve().then(() => __importStar(require('./BJCree'))),
794
+ },
790
795
  {
791
796
  fontFamily: 'Babylonica',
792
797
  importName: 'Babylonica',
@@ -4777,6 +4782,11 @@ const getAvailableFonts = () => [
4777
4782
  importName: 'Miniver',
4778
4783
  load: () => Promise.resolve().then(() => __importStar(require('./Miniver'))),
4779
4784
  },
4785
+ {
4786
+ fontFamily: 'Miranda Sans',
4787
+ importName: 'MirandaSans',
4788
+ load: () => Promise.resolve().then(() => __importStar(require('./MirandaSans'))),
4789
+ },
4780
4790
  {
4781
4791
  fontFamily: 'Miriam Libre',
4782
4792
  importName: 'MiriamLibre',
@@ -7552,6 +7562,11 @@ const getAvailableFonts = () => [
7552
7562
  importName: 'SairaSemiCondensed',
7553
7563
  load: () => Promise.resolve().then(() => __importStar(require('./SairaSemiCondensed'))),
7554
7564
  },
7565
+ {
7566
+ fontFamily: 'Saira Stencil',
7567
+ importName: 'SairaStencil',
7568
+ load: () => Promise.resolve().then(() => __importStar(require('./SairaStencil'))),
7569
+ },
7555
7570
  {
7556
7571
  fontFamily: 'Saira Stencil One',
7557
7572
  importName: 'SairaStencilOne',
@@ -0,0 +1,149 @@
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 && !options?.ignoreTooManyRequestsWarning) {
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/BJCree.ts
110
+ var getInfo = () => ({
111
+ fontFamily: "BJ Cree",
112
+ importName: "BJCree",
113
+ version: "v1",
114
+ url: "https://fonts.googleapis.com/css2?family=BJ+Cree:ital,wght@0,400;0,500;0,600;0,700",
115
+ unicodeRanges: {
116
+ "canadian-aboriginal": "U+02C7, U+02D8-02D9, U+02DB, U+0307, U+1400-167F, U+18B0-18F5, U+25CC, U+11AB0-11ABF",
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
+ "canadian-aboriginal": "https://fonts.gstatic.com/s/bjcree/v1/8QIJdijLoYvJ7b7biKAEqojk.woff2",
123
+ latin: "https://fonts.gstatic.com/s/bjcree/v1/8QIJdijLoYvJ7b7biI8Eqg.woff2"
124
+ },
125
+ "500": {
126
+ "canadian-aboriginal": "https://fonts.gstatic.com/s/bjcree/v1/8QIMdijLoYvJ7b7bgHwnv5jFHdVy.woff2",
127
+ latin: "https://fonts.gstatic.com/s/bjcree/v1/8QIMdijLoYvJ7b7bgHwnv7fFHQ.woff2"
128
+ },
129
+ "600": {
130
+ "canadian-aboriginal": "https://fonts.gstatic.com/s/bjcree/v1/8QIMdijLoYvJ7b7bgFAgv5jFHdVy.woff2",
131
+ latin: "https://fonts.gstatic.com/s/bjcree/v1/8QIMdijLoYvJ7b7bgFAgv7fFHQ.woff2"
132
+ },
133
+ "700": {
134
+ "canadian-aboriginal": "https://fonts.gstatic.com/s/bjcree/v1/8QIMdijLoYvJ7b7bgDQhv5jFHdVy.woff2",
135
+ latin: "https://fonts.gstatic.com/s/bjcree/v1/8QIMdijLoYvJ7b7bgDQhv7fFHQ.woff2"
136
+ }
137
+ }
138
+ },
139
+ subsets: ["canadian-aboriginal", "latin"]
140
+ });
141
+ var fontFamily = "BJ Cree";
142
+ var loadFont = (style, options) => {
143
+ return loadFonts(getInfo(), style, options);
144
+ };
145
+ export {
146
+ loadFont,
147
+ getInfo,
148
+ fontFamily
149
+ };
@@ -110,22 +110,25 @@ var loadFonts = (meta, style, options) => {
110
110
  var getInfo = () => ({
111
111
  fontFamily: "Coustard",
112
112
  importName: "Coustard",
113
- version: "v17",
113
+ version: "v19",
114
114
  url: "https://fonts.googleapis.com/css2?family=Coustard:ital,wght@0,400;0,900",
115
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",
116
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"
117
118
  },
118
119
  fonts: {
119
120
  normal: {
120
121
  "400": {
121
- latin: "https://fonts.gstatic.com/s/coustard/v17/3XFpErgg3YsZ5fqUU-UIt2Q.woff2"
122
+ "latin-ext": "https://fonts.gstatic.com/s/coustard/v19/3XFpErgg3YsZ5fqUU-UGt2TeRA.woff2",
123
+ latin: "https://fonts.gstatic.com/s/coustard/v19/3XFpErgg3YsZ5fqUU-UIt2Q.woff2"
122
124
  },
123
125
  "900": {
124
- latin: "https://fonts.gstatic.com/s/coustard/v17/3XFuErgg3YsZ5fqUU-2LkHHhZfk.woff2"
126
+ "latin-ext": "https://fonts.gstatic.com/s/coustard/v19/3XFuErgg3YsZ5fqUU-2LkHHvZfnk3Q.woff2",
127
+ latin: "https://fonts.gstatic.com/s/coustard/v19/3XFuErgg3YsZ5fqUU-2LkHHhZfk.woff2"
125
128
  }
126
129
  }
127
130
  },
128
- subsets: ["latin"]
131
+ subsets: ["latin", "latin-ext"]
129
132
  });
130
133
  var fontFamily = "Coustard";
131
134
  var loadFont = (style, options) => {