@remotion/google-fonts 4.0.301 → 4.0.303

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.
Files changed (37) hide show
  1. package/dist/cjs/Akatab.js +19 -19
  2. package/dist/cjs/AncizarSans.d.ts +131 -0
  3. package/dist/cjs/AncizarSans.js +118 -0
  4. package/dist/cjs/AncizarSerif.d.ts +111 -0
  5. package/dist/cjs/AncizarSerif.js +98 -0
  6. package/dist/cjs/Exile.d.ts +38 -0
  7. package/dist/cjs/Exile.js +29 -0
  8. package/dist/cjs/Figtree.js +29 -29
  9. package/dist/cjs/Iansui.d.ts +3 -1
  10. package/dist/cjs/Iansui.js +112 -110
  11. package/dist/cjs/NotoZnamennyMusicalNotation.js +6 -6
  12. package/dist/cjs/PlaypenSans.d.ts +28 -1
  13. package/dist/cjs/PlaypenSans.js +142 -106
  14. package/dist/cjs/PlaypenSansArabic.d.ts +174 -0
  15. package/dist/cjs/PlaypenSansArabic.js +165 -0
  16. package/dist/cjs/PlaypenSansDeva.d.ts +156 -0
  17. package/dist/cjs/PlaypenSansDeva.js +147 -0
  18. package/dist/cjs/PlaypenSansHebrew.d.ts +165 -0
  19. package/dist/cjs/PlaypenSansHebrew.js +156 -0
  20. package/dist/cjs/PlaypenSansThai.d.ts +165 -0
  21. package/dist/cjs/PlaypenSansThai.js +156 -0
  22. package/dist/cjs/index.js +35 -0
  23. package/dist/esm/Akatab.mjs +19 -19
  24. package/dist/esm/AncizarSans.mjs +226 -0
  25. package/dist/esm/AncizarSerif.mjs +206 -0
  26. package/dist/esm/Exile.mjs +137 -0
  27. package/dist/esm/Figtree.mjs +29 -29
  28. package/dist/esm/Iansui.mjs +112 -110
  29. package/dist/esm/NotoZnamennyMusicalNotation.mjs +6 -6
  30. package/dist/esm/PlaypenSans.mjs +142 -106
  31. package/dist/esm/PlaypenSansArabic.mjs +273 -0
  32. package/dist/esm/PlaypenSansDeva.mjs +255 -0
  33. package/dist/esm/PlaypenSansHebrew.mjs +264 -0
  34. package/dist/esm/PlaypenSansThai.mjs +264 -0
  35. package/dist/esm/index.mjs +35 -0
  36. package/dist/tsconfig.tsbuildinfo +1 -1
  37. package/package.json +23 -2
@@ -0,0 +1,156 @@
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: 'Playpen Sans Thai',
7
+ importName: 'PlaypenSansThai',
8
+ version: 'v6',
9
+ url: 'https://fonts.googleapis.com/css2?family=Playpen+Sans+Thai:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800',
10
+ unicodeRanges: {
11
+ '[1]': 'U+200d, U+2620, U+26a7, U+fe0f, U+1f308, U+1f38c, U+1f3c1, U+1f3f3-1f3f4, U+1f6a9, U+e0062-e0063, U+e0065, U+e0067, U+e006c, U+e006e, U+e0073-e0074, U+e0077, U+e007f',
12
+ '[2]': 'U+23, U+2a, U+30-39, U+a9, U+ae, U+200d, U+203c, U+2049, U+20e3, U+2122, U+2139, U+2194-2199, U+21a9-21aa, U+23cf, U+23e9-23ef, U+23f8-23fa, U+24c2, U+25aa-25ab, U+25b6, U+25c0, U+25fb-25fe, U+2611, U+2622-2623, U+2626, U+262a, U+262e-262f, U+2638, U+2640, U+2642, U+2648-2653, U+2660, U+2663, U+2665-2666, U+2668, U+267b, U+267e-267f, U+2695, U+269b-269c, U+26a0, U+26a7, U+26aa-26ab, U+26ce, U+26d4, U+2705, U+2714, U+2716, U+271d, U+2721, U+2733-2734, U+2747, U+274c, U+274e, U+2753-2755, U+2757, U+2764, U+2795-2797, U+27a1, U+27b0, U+27bf, U+2934-2935, U+2b05-2b07, U+2b1b-2b1c, U+2b55, U+3030, U+303d, U+3297, U+3299, U+fe0f, U+1f170-1f171, U+1f17e-1f17f, U+1f18e, U+1f191-1f19a, U+1f201-1f202, U+1f21a, U+1f22f, U+1f232-1f23a, U+1f250-1f251, U+1f310, U+1f3a6, U+1f3b5-1f3b6, U+1f3bc, U+1f3e7, U+1f441, U+1f499-1f49c, U+1f49f-1f4a0, U+1f4a2, U+1f4ac-1f4ad, U+1f4b1-1f4b2, U+1f4b9, U+1f4db, U+1f4f2-1f4f6, U+1f500-1f50a, U+1f515, U+1f518-1f524, U+1f52f-1f53d, U+1f549, U+1f54e, U+1f5a4, U+1f5e8, U+1f5ef, U+1f6ab, U+1f6ad-1f6b1, U+1f6b3, U+1f6b7-1f6bc, U+1f6be, U+1f6c2-1f6c5, U+1f6d0-1f6d1, U+1f6d7, U+1f6dc, U+1f7e0-1f7eb, U+1f7f0, U+1f90d-1f90e, U+1f9e1, U+1fa75-1fa77, U+1faaf',
13
+ '[3]': 'U+231a-231b, U+2328, U+23f0-23f3, U+2602, U+260e, U+2692, U+2694, U+2696-2697, U+2699, U+26b0-26b1, U+26cf, U+26d1, U+26d3, U+2702, U+2709, U+270f, U+2712, U+fe0f, U+1f302, U+1f321, U+1f392-1f393, U+1f3a9, U+1f3bd, U+1f3ee, U+1f3f7, U+1f3fa, U+1f451-1f462, U+1f484, U+1f489-1f48a, U+1f48c-1f48e, U+1f4a1, U+1f4a3, U+1f4b0, U+1f4b3-1f4b8, U+1f4bb-1f4da, U+1f4dc-1f4f1, U+1f4ff, U+1f50b-1f514, U+1f516-1f517, U+1f526-1f529, U+1f52c-1f52e, U+1f550-1f567, U+1f56f-1f570, U+1f576, U+1f587, U+1f58a-1f58d, U+1f5a5, U+1f5a8, U+1f5b1-1f5b2, U+1f5c2-1f5c4, U+1f5d1-1f5d3, U+1f5dc-1f5de, U+1f5e1, U+1f5f3, U+1f6aa, U+1f6ac, U+1f6bd, U+1f6bf, U+1f6c1, U+1f6cb, U+1f6cd-1f6cf, U+1f6d2, U+1f6e0-1f6e1, U+1f6f0, U+1f97b-1f97f, U+1f9af, U+1f9ba, U+1f9e2-1f9e6, U+1f9ea-1f9ec, U+1f9ee-1f9f4, U+1f9f7-1f9ff, U+1fa71-1fa74, U+1fa79-1fa7b, U+1fa86, U+1fa91-1fa93, U+1fa96, U+1fa99-1faa0, U+1faa2-1faa7, U+1faaa-1faae',
14
+ '[4]': 'U+265f, U+26bd-26be, U+26f3, U+26f8, U+fe0f, U+1f004, U+1f0cf, U+1f380-1f384, U+1f386-1f38b, U+1f38d-1f391, U+1f396-1f397, U+1f399-1f39b, U+1f39e-1f39f, U+1f3a3-1f3a5, U+1f3a7-1f3a9, U+1f3ab-1f3b4, U+1f3b7-1f3bb, U+1f3bd-1f3c0, U+1f3c5-1f3c6, U+1f3c8-1f3c9, U+1f3cf-1f3d3, U+1f3f8-1f3f9, U+1f47e, U+1f4e2, U+1f4f7-1f4fd, U+1f52b, U+1f579, U+1f58c-1f58d, U+1f5bc, U+1f6f7, U+1f6f9, U+1f6fc, U+1f93f, U+1f941, U+1f945, U+1f947-1f94f, U+1f9e7-1f9e9, U+1f9f5-1f9f6, U+1fa70-1fa71, U+1fa80-1fa81, U+1fa83-1fa85, U+1fa87-1fa88, U+1fa94-1fa95, U+1fa97-1fa98, U+1faa1, U+1faa9',
15
+ '[5]': 'U+2693, U+26e9-26ea, U+26f1-26f2, U+26f4-26f5, U+26fa, U+26fd, U+2708, U+fe0f, U+1f301, U+1f303, U+1f306-1f307, U+1f309, U+1f310, U+1f3a0-1f3a2, U+1f3aa, U+1f3cd-1f3ce, U+1f3d5, U+1f3d7-1f3db, U+1f3df-1f3e6, U+1f3e8-1f3ed, U+1f3ef-1f3f0, U+1f488, U+1f492, U+1f4ba, U+1f54b-1f54d, U+1f5fa-1f5ff, U+1f680-1f6a2, U+1f6a4-1f6a8, U+1f6b2, U+1f6d1, U+1f6d5-1f6d6, U+1f6dd-1f6df, U+1f6e2-1f6e5, U+1f6e9, U+1f6eb-1f6ec, U+1f6f3-1f6f6, U+1f6f8, U+1f6fa-1f6fb, U+1f9bc-1f9bd, U+1f9ed, U+1f9f3, U+1fa7c',
16
+ '[6]': 'U+2615, U+fe0f, U+1f32d-1f330, U+1f336, U+1f33d, U+1f345-1f37f, U+1f382, U+1f52a, U+1f942-1f944, U+1f950-1f96f, U+1f99e, U+1f9aa, U+1f9c0-1f9cb, U+1fad0-1fadb',
17
+ '[7]': 'U+200d, U+2600-2601, U+2603-2604, U+2614, U+2618, U+26a1, U+26c4-26c5, U+26c8, U+26f0, U+2728, U+2744, U+2b1b, U+2b50, U+fe0f, U+1f300, U+1f304-1f305, U+1f308, U+1f30a-1f30f, U+1f311-1f321, U+1f324-1f32c, U+1f331-1f335, U+1f337-1f33c, U+1f33e-1f344, U+1f3d4, U+1f3d6, U+1f3dc-1f3de, U+1f3f5, U+1f400-1f43f, U+1f490, U+1f4a7, U+1f4ab, U+1f4ae, U+1f525, U+1f54a, U+1f573, U+1f577-1f578, U+1f648-1f64a, U+1f940, U+1f980-1f9ae, U+1f9ba, U+1fa90, U+1faa8, U+1fab0-1fabd, U+1fabf, U+1face-1facf, U+1fae7',
18
+ '[8]': 'U+200d, U+2640, U+2642, U+2695-2696, U+26f7, U+26f9, U+2708, U+2764, U+fe0f, U+1f33e, U+1f373, U+1f37c, U+1f384-1f385, U+1f393, U+1f3a4, U+1f3a8, U+1f3c2-1f3c4, U+1f3c7, U+1f3ca-1f3cc, U+1f3eb, U+1f3ed, U+1f3fb-1f3ff, U+1f466-1f478, U+1f47c, U+1f481-1f483, U+1f486-1f487, U+1f48b, U+1f48f, U+1f491, U+1f4bb-1f4bc, U+1f527, U+1f52c, U+1f574-1f575, U+1f57a, U+1f645-1f647, U+1f64b, U+1f64d-1f64e, U+1f680, U+1f692, U+1f6a3, U+1f6b4-1f6b6, U+1f6c0, U+1f6cc, U+1f91d, U+1f926, U+1f930-1f931, U+1f934-1f93a, U+1f93c-1f93e, U+1f977, U+1f9af-1f9b3, U+1f9b8-1f9b9, U+1f9bc-1f9bd, U+1f9cc-1f9cf, U+1f9d1-1f9df, U+1fa82, U+1fac3-1fac5',
19
+ '[9]': 'U+200d, U+261d, U+2620, U+2639-263a, U+2665, U+270a-270d, U+2728, U+2763-2764, U+2b50, U+fe0f, U+1f31a-1f31f, U+1f32b, U+1f383, U+1f389, U+1f3fb-1f3ff, U+1f440-1f450, U+1f463-1f465, U+1f479-1f47b, U+1f47d-1f480, U+1f485, U+1f48b-1f48c, U+1f493-1f49f, U+1f4a4-1f4a6, U+1f4a8-1f4ab, U+1f4af, U+1f525, U+1f573, U+1f590, U+1f595-1f596, U+1f5a4, U+1f5e3, U+1f600-1f644, U+1f648-1f64a, U+1f64c, U+1f64f, U+1f90c-1f925, U+1f927-1f92f, U+1f932-1f933, U+1f970-1f976, U+1f978-1f97a, U+1f9a0, U+1f9b4-1f9b7, U+1f9bb, U+1f9be-1f9bf, U+1f9d0, U+1f9e0-1f9e1, U+1fa75-1fa79, U+1fac0-1fac2, U+1fae0-1fae6, U+1fae8, U+1faf0-1faf8',
20
+ math: 'U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-208E, U+2090-209C, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF',
21
+ thai: 'U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC',
22
+ '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',
23
+ 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',
24
+ },
25
+ fonts: {
26
+ normal: {
27
+ '100': {
28
+ '[1]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.1.woff2',
29
+ '[2]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.2.woff2',
30
+ '[3]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.3.woff2',
31
+ '[4]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.4.woff2',
32
+ '[5]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.5.woff2',
33
+ '[6]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.6.woff2',
34
+ '[7]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.7.woff2',
35
+ '[8]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.8.woff2',
36
+ '[9]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.9.woff2',
37
+ math: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssX9xL4y7g.woff2',
38
+ thai: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWVxL4y7g.woff2',
39
+ 'latin-ext': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWPxL4y7g.woff2',
40
+ latin: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWBxL4.woff2',
41
+ },
42
+ '200': {
43
+ '[1]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.1.woff2',
44
+ '[2]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.2.woff2',
45
+ '[3]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.3.woff2',
46
+ '[4]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.4.woff2',
47
+ '[5]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.5.woff2',
48
+ '[6]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.6.woff2',
49
+ '[7]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.7.woff2',
50
+ '[8]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.8.woff2',
51
+ '[9]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.9.woff2',
52
+ math: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssX9xL4y7g.woff2',
53
+ thai: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWVxL4y7g.woff2',
54
+ 'latin-ext': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWPxL4y7g.woff2',
55
+ latin: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWBxL4.woff2',
56
+ },
57
+ '300': {
58
+ '[1]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.1.woff2',
59
+ '[2]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.2.woff2',
60
+ '[3]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.3.woff2',
61
+ '[4]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.4.woff2',
62
+ '[5]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.5.woff2',
63
+ '[6]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.6.woff2',
64
+ '[7]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.7.woff2',
65
+ '[8]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.8.woff2',
66
+ '[9]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.9.woff2',
67
+ math: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssX9xL4y7g.woff2',
68
+ thai: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWVxL4y7g.woff2',
69
+ 'latin-ext': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWPxL4y7g.woff2',
70
+ latin: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWBxL4.woff2',
71
+ },
72
+ '400': {
73
+ '[1]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.1.woff2',
74
+ '[2]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.2.woff2',
75
+ '[3]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.3.woff2',
76
+ '[4]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.4.woff2',
77
+ '[5]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.5.woff2',
78
+ '[6]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.6.woff2',
79
+ '[7]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.7.woff2',
80
+ '[8]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.8.woff2',
81
+ '[9]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.9.woff2',
82
+ math: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssX9xL4y7g.woff2',
83
+ thai: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWVxL4y7g.woff2',
84
+ 'latin-ext': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWPxL4y7g.woff2',
85
+ latin: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWBxL4.woff2',
86
+ },
87
+ '500': {
88
+ '[1]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.1.woff2',
89
+ '[2]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.2.woff2',
90
+ '[3]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.3.woff2',
91
+ '[4]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.4.woff2',
92
+ '[5]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.5.woff2',
93
+ '[6]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.6.woff2',
94
+ '[7]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.7.woff2',
95
+ '[8]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.8.woff2',
96
+ '[9]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.9.woff2',
97
+ math: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssX9xL4y7g.woff2',
98
+ thai: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWVxL4y7g.woff2',
99
+ 'latin-ext': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWPxL4y7g.woff2',
100
+ latin: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWBxL4.woff2',
101
+ },
102
+ '600': {
103
+ '[1]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.1.woff2',
104
+ '[2]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.2.woff2',
105
+ '[3]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.3.woff2',
106
+ '[4]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.4.woff2',
107
+ '[5]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.5.woff2',
108
+ '[6]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.6.woff2',
109
+ '[7]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.7.woff2',
110
+ '[8]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.8.woff2',
111
+ '[9]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.9.woff2',
112
+ math: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssX9xL4y7g.woff2',
113
+ thai: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWVxL4y7g.woff2',
114
+ 'latin-ext': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWPxL4y7g.woff2',
115
+ latin: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWBxL4.woff2',
116
+ },
117
+ '700': {
118
+ '[1]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.1.woff2',
119
+ '[2]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.2.woff2',
120
+ '[3]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.3.woff2',
121
+ '[4]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.4.woff2',
122
+ '[5]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.5.woff2',
123
+ '[6]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.6.woff2',
124
+ '[7]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.7.woff2',
125
+ '[8]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.8.woff2',
126
+ '[9]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.9.woff2',
127
+ math: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssX9xL4y7g.woff2',
128
+ thai: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWVxL4y7g.woff2',
129
+ 'latin-ext': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWPxL4y7g.woff2',
130
+ latin: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWBxL4.woff2',
131
+ },
132
+ '800': {
133
+ '[1]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.1.woff2',
134
+ '[2]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.2.woff2',
135
+ '[3]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.3.woff2',
136
+ '[4]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.4.woff2',
137
+ '[5]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.5.woff2',
138
+ '[6]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.6.woff2',
139
+ '[7]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.7.woff2',
140
+ '[8]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.8.woff2',
141
+ '[9]': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBsvWDprIA6ovDoHYiWlM.9.woff2',
142
+ math: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssX9xL4y7g.woff2',
143
+ thai: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWVxL4y7g.woff2',
144
+ 'latin-ext': 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWPxL4y7g.woff2',
145
+ latin: 'https://fonts.gstatic.com/s/playpensansthai/v6/VdGEAYIdG5kSgHwmKT9wYu2rs0cBssWBxL4.woff2',
146
+ },
147
+ },
148
+ },
149
+ subsets: ['emoji', 'latin', 'latin-ext', 'math', 'thai'],
150
+ });
151
+ exports.getInfo = getInfo;
152
+ exports.fontFamily = 'Playpen Sans Thai';
153
+ const loadFont = (style, options) => {
154
+ return (0, base_1.loadFonts)((0, exports.getInfo)(), style, options);
155
+ };
156
+ exports.loadFont = loadFont;
package/dist/cjs/index.js CHANGED
@@ -367,6 +367,16 @@ const getAvailableFonts = () => [
367
367
  importName: 'Anaheim',
368
368
  load: () => Promise.resolve().then(() => __importStar(require('./Anaheim'))),
369
369
  },
370
+ {
371
+ fontFamily: 'Ancizar Sans',
372
+ importName: 'AncizarSans',
373
+ load: () => Promise.resolve().then(() => __importStar(require('./AncizarSans'))),
374
+ },
375
+ {
376
+ fontFamily: 'Ancizar Serif',
377
+ importName: 'AncizarSerif',
378
+ load: () => Promise.resolve().then(() => __importStar(require('./AncizarSerif'))),
379
+ },
370
380
  {
371
381
  fontFamily: 'Andada Pro',
372
382
  importName: 'AndadaPro',
@@ -2212,6 +2222,11 @@ const getAvailableFonts = () => [
2212
2222
  importName: 'Ewert',
2213
2223
  load: () => Promise.resolve().then(() => __importStar(require('./Ewert'))),
2214
2224
  },
2225
+ {
2226
+ fontFamily: 'Exile',
2227
+ importName: 'Exile',
2228
+ load: () => Promise.resolve().then(() => __importStar(require('./Exile'))),
2229
+ },
2215
2230
  {
2216
2231
  fontFamily: 'Exo',
2217
2232
  importName: 'Exo',
@@ -6357,6 +6372,26 @@ const getAvailableFonts = () => [
6357
6372
  importName: 'PlaypenSans',
6358
6373
  load: () => Promise.resolve().then(() => __importStar(require('./PlaypenSans'))),
6359
6374
  },
6375
+ {
6376
+ fontFamily: 'Playpen Sans Arabic',
6377
+ importName: 'PlaypenSansArabic',
6378
+ load: () => Promise.resolve().then(() => __importStar(require('./PlaypenSansArabic'))),
6379
+ },
6380
+ {
6381
+ fontFamily: 'Playpen Sans Deva',
6382
+ importName: 'PlaypenSansDeva',
6383
+ load: () => Promise.resolve().then(() => __importStar(require('./PlaypenSansDeva'))),
6384
+ },
6385
+ {
6386
+ fontFamily: 'Playpen Sans Hebrew',
6387
+ importName: 'PlaypenSansHebrew',
6388
+ load: () => Promise.resolve().then(() => __importStar(require('./PlaypenSansHebrew'))),
6389
+ },
6390
+ {
6391
+ fontFamily: 'Playpen Sans Thai',
6392
+ importName: 'PlaypenSansThai',
6393
+ load: () => Promise.resolve().then(() => __importStar(require('./PlaypenSansThai'))),
6394
+ },
6360
6395
  {
6361
6396
  fontFamily: 'Plus Jakarta Sans',
6362
6397
  importName: 'PlusJakartaSans',
@@ -110,7 +110,7 @@ var loadFonts = (meta, style, options) => {
110
110
  var getInfo = () => ({
111
111
  fontFamily: "Akatab",
112
112
  importName: "Akatab",
113
- version: "v7",
113
+ version: "v8",
114
114
  url: "https://fonts.googleapis.com/css2?family=Akatab:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900",
115
115
  unicodeRanges: {
116
116
  tifinagh: "U+02C7, U+0301-0302, U+0304, U+0306-0307, U+0309, U+0323, U+0331, U+200C-200D, U+202E, U+25CC, U+2D30-2D7F",
@@ -120,34 +120,34 @@ var getInfo = () => ({
120
120
  fonts: {
121
121
  normal: {
122
122
  "400": {
123
- tifinagh: "https://fonts.gstatic.com/s/akatab/v7/VuJwdNrK3Z7gqJE_f4b4BIg.woff2",
124
- "latin-ext": "https://fonts.gstatic.com/s/akatab/v7/VuJwdNrK3Z7gqJE_UYb4BIg.woff2",
125
- latin: "https://fonts.gstatic.com/s/akatab/v7/VuJwdNrK3Z7gqJE_X4b4.woff2"
123
+ tifinagh: "https://fonts.gstatic.com/s/akatab/v8/VuJwdNrK3Z7gqJE_f4b4BIg.woff2",
124
+ "latin-ext": "https://fonts.gstatic.com/s/akatab/v8/VuJwdNrK3Z7gqJE_UYb4BIg.woff2",
125
+ latin: "https://fonts.gstatic.com/s/akatab/v8/VuJwdNrK3Z7gqJE_X4b4.woff2"
126
126
  },
127
127
  "500": {
128
- tifinagh: "https://fonts.gstatic.com/s/akatab/v7/VuJzdNrK3Z7gqJE3rKXtG6ljWRo.woff2",
129
- "latin-ext": "https://fonts.gstatic.com/s/akatab/v7/VuJzdNrK3Z7gqJE3rKXtNaljWRo.woff2",
130
- latin: "https://fonts.gstatic.com/s/akatab/v7/VuJzdNrK3Z7gqJE3rKXtO6lj.woff2"
128
+ tifinagh: "https://fonts.gstatic.com/s/akatab/v8/VuJzdNrK3Z7gqJE3rKXtG6ljWRo.woff2",
129
+ "latin-ext": "https://fonts.gstatic.com/s/akatab/v8/VuJzdNrK3Z7gqJE3rKXtNaljWRo.woff2",
130
+ latin: "https://fonts.gstatic.com/s/akatab/v8/VuJzdNrK3Z7gqJE3rKXtO6lj.woff2"
131
131
  },
132
132
  "600": {
133
- tifinagh: "https://fonts.gstatic.com/s/akatab/v7/VuJzdNrK3Z7gqJE3gKLtG6ljWRo.woff2",
134
- "latin-ext": "https://fonts.gstatic.com/s/akatab/v7/VuJzdNrK3Z7gqJE3gKLtNaljWRo.woff2",
135
- latin: "https://fonts.gstatic.com/s/akatab/v7/VuJzdNrK3Z7gqJE3gKLtO6lj.woff2"
133
+ tifinagh: "https://fonts.gstatic.com/s/akatab/v8/VuJzdNrK3Z7gqJE3gKLtG6ljWRo.woff2",
134
+ "latin-ext": "https://fonts.gstatic.com/s/akatab/v8/VuJzdNrK3Z7gqJE3gKLtNaljWRo.woff2",
135
+ latin: "https://fonts.gstatic.com/s/akatab/v8/VuJzdNrK3Z7gqJE3gKLtO6lj.woff2"
136
136
  },
137
137
  "700": {
138
- tifinagh: "https://fonts.gstatic.com/s/akatab/v7/VuJzdNrK3Z7gqJE35KPtG6ljWRo.woff2",
139
- "latin-ext": "https://fonts.gstatic.com/s/akatab/v7/VuJzdNrK3Z7gqJE35KPtNaljWRo.woff2",
140
- latin: "https://fonts.gstatic.com/s/akatab/v7/VuJzdNrK3Z7gqJE35KPtO6lj.woff2"
138
+ tifinagh: "https://fonts.gstatic.com/s/akatab/v8/VuJzdNrK3Z7gqJE35KPtG6ljWRo.woff2",
139
+ "latin-ext": "https://fonts.gstatic.com/s/akatab/v8/VuJzdNrK3Z7gqJE35KPtNaljWRo.woff2",
140
+ latin: "https://fonts.gstatic.com/s/akatab/v8/VuJzdNrK3Z7gqJE35KPtO6lj.woff2"
141
141
  },
142
142
  "800": {
143
- tifinagh: "https://fonts.gstatic.com/s/akatab/v7/VuJzdNrK3Z7gqJE3-KDtG6ljWRo.woff2",
144
- "latin-ext": "https://fonts.gstatic.com/s/akatab/v7/VuJzdNrK3Z7gqJE3-KDtNaljWRo.woff2",
145
- latin: "https://fonts.gstatic.com/s/akatab/v7/VuJzdNrK3Z7gqJE3-KDtO6lj.woff2"
143
+ tifinagh: "https://fonts.gstatic.com/s/akatab/v8/VuJzdNrK3Z7gqJE3-KDtG6ljWRo.woff2",
144
+ "latin-ext": "https://fonts.gstatic.com/s/akatab/v8/VuJzdNrK3Z7gqJE3-KDtNaljWRo.woff2",
145
+ latin: "https://fonts.gstatic.com/s/akatab/v8/VuJzdNrK3Z7gqJE3-KDtO6lj.woff2"
146
146
  },
147
147
  "900": {
148
- tifinagh: "https://fonts.gstatic.com/s/akatab/v7/VuJzdNrK3Z7gqJE33KHtG6ljWRo.woff2",
149
- "latin-ext": "https://fonts.gstatic.com/s/akatab/v7/VuJzdNrK3Z7gqJE33KHtNaljWRo.woff2",
150
- latin: "https://fonts.gstatic.com/s/akatab/v7/VuJzdNrK3Z7gqJE33KHtO6lj.woff2"
148
+ tifinagh: "https://fonts.gstatic.com/s/akatab/v8/VuJzdNrK3Z7gqJE33KHtG6ljWRo.woff2",
149
+ "latin-ext": "https://fonts.gstatic.com/s/akatab/v8/VuJzdNrK3Z7gqJE33KHtNaljWRo.woff2",
150
+ latin: "https://fonts.gstatic.com/s/akatab/v8/VuJzdNrK3Z7gqJE33KHtO6lj.woff2"
151
151
  }
152
152
  }
153
153
  },
@@ -0,0 +1,226 @@
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/AncizarSans.ts
110
+ var getInfo = () => ({
111
+ fontFamily: "Ancizar Sans",
112
+ importName: "AncizarSans",
113
+ version: "v5",
114
+ url: "https://fonts.googleapis.com/css2?family=Ancizar+Sans: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",
115
+ unicodeRanges: {
116
+ greek: "U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF",
117
+ "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",
118
+ 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"
119
+ },
120
+ fonts: {
121
+ italic: {
122
+ "100": {
123
+ greek: "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjBjl2daw.woff2",
124
+ "latin-ext": "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjMjl2daw.woff2",
125
+ latin: "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjCjl0.woff2"
126
+ },
127
+ "200": {
128
+ greek: "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjBjl2daw.woff2",
129
+ "latin-ext": "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjMjl2daw.woff2",
130
+ latin: "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjCjl0.woff2"
131
+ },
132
+ "300": {
133
+ greek: "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjBjl2daw.woff2",
134
+ "latin-ext": "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjMjl2daw.woff2",
135
+ latin: "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjCjl0.woff2"
136
+ },
137
+ "400": {
138
+ greek: "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjBjl2daw.woff2",
139
+ "latin-ext": "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjMjl2daw.woff2",
140
+ latin: "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjCjl0.woff2"
141
+ },
142
+ "500": {
143
+ greek: "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjBjl2daw.woff2",
144
+ "latin-ext": "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjMjl2daw.woff2",
145
+ latin: "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjCjl0.woff2"
146
+ },
147
+ "600": {
148
+ greek: "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjBjl2daw.woff2",
149
+ "latin-ext": "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjMjl2daw.woff2",
150
+ latin: "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjCjl0.woff2"
151
+ },
152
+ "700": {
153
+ greek: "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjBjl2daw.woff2",
154
+ "latin-ext": "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjMjl2daw.woff2",
155
+ latin: "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjCjl0.woff2"
156
+ },
157
+ "800": {
158
+ greek: "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjBjl2daw.woff2",
159
+ "latin-ext": "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjMjl2daw.woff2",
160
+ latin: "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjCjl0.woff2"
161
+ },
162
+ "900": {
163
+ greek: "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjBjl2daw.woff2",
164
+ "latin-ext": "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjMjl2daw.woff2",
165
+ latin: "https://fonts.gstatic.com/s/ancizarsans/v5/fC14PYtHY2vX3wj8IbE7Pxe8VTjCjl0.woff2"
166
+ }
167
+ },
168
+ normal: {
169
+ "100": {
170
+ greek: "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8UwjAllk.woff2",
171
+ "latin-ext": "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8XgjAllk.woff2",
172
+ latin: "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8UAjA.woff2"
173
+ },
174
+ "200": {
175
+ greek: "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8UwjAllk.woff2",
176
+ "latin-ext": "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8XgjAllk.woff2",
177
+ latin: "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8UAjA.woff2"
178
+ },
179
+ "300": {
180
+ greek: "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8UwjAllk.woff2",
181
+ "latin-ext": "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8XgjAllk.woff2",
182
+ latin: "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8UAjA.woff2"
183
+ },
184
+ "400": {
185
+ greek: "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8UwjAllk.woff2",
186
+ "latin-ext": "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8XgjAllk.woff2",
187
+ latin: "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8UAjA.woff2"
188
+ },
189
+ "500": {
190
+ greek: "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8UwjAllk.woff2",
191
+ "latin-ext": "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8XgjAllk.woff2",
192
+ latin: "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8UAjA.woff2"
193
+ },
194
+ "600": {
195
+ greek: "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8UwjAllk.woff2",
196
+ "latin-ext": "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8XgjAllk.woff2",
197
+ latin: "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8UAjA.woff2"
198
+ },
199
+ "700": {
200
+ greek: "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8UwjAllk.woff2",
201
+ "latin-ext": "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8XgjAllk.woff2",
202
+ latin: "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8UAjA.woff2"
203
+ },
204
+ "800": {
205
+ greek: "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8UwjAllk.woff2",
206
+ "latin-ext": "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8XgjAllk.woff2",
207
+ latin: "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8UAjA.woff2"
208
+ },
209
+ "900": {
210
+ greek: "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8UwjAllk.woff2",
211
+ "latin-ext": "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8XgjAllk.woff2",
212
+ latin: "https://fonts.gstatic.com/s/ancizarsans/v5/fC1mPYtHY2vX3wj8IbE7Pxe8UAjA.woff2"
213
+ }
214
+ }
215
+ },
216
+ subsets: ["greek", "latin", "latin-ext"]
217
+ });
218
+ var fontFamily = "Ancizar Sans";
219
+ var loadFont = (style, options) => {
220
+ return loadFonts(getInfo(), style, options);
221
+ };
222
+ export {
223
+ loadFont,
224
+ getInfo,
225
+ fontFamily
226
+ };