@remotion/google-fonts 4.0.329 → 4.0.331

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,100 @@
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
+ vietnamese: string;
10
+ 'latin-ext': string;
11
+ latin: string;
12
+ };
13
+ fonts: {
14
+ normal: {
15
+ '100': {
16
+ 'cyrillic-ext': string;
17
+ cyrillic: string;
18
+ vietnamese: string;
19
+ 'latin-ext': string;
20
+ latin: string;
21
+ };
22
+ '200': {
23
+ 'cyrillic-ext': string;
24
+ cyrillic: string;
25
+ vietnamese: string;
26
+ 'latin-ext': string;
27
+ latin: string;
28
+ };
29
+ '300': {
30
+ 'cyrillic-ext': string;
31
+ cyrillic: string;
32
+ vietnamese: string;
33
+ 'latin-ext': string;
34
+ latin: string;
35
+ };
36
+ '400': {
37
+ 'cyrillic-ext': string;
38
+ cyrillic: string;
39
+ vietnamese: string;
40
+ 'latin-ext': string;
41
+ latin: string;
42
+ };
43
+ '500': {
44
+ 'cyrillic-ext': string;
45
+ cyrillic: string;
46
+ vietnamese: string;
47
+ 'latin-ext': string;
48
+ latin: string;
49
+ };
50
+ '600': {
51
+ 'cyrillic-ext': string;
52
+ cyrillic: string;
53
+ vietnamese: string;
54
+ 'latin-ext': string;
55
+ latin: string;
56
+ };
57
+ '700': {
58
+ 'cyrillic-ext': string;
59
+ cyrillic: string;
60
+ vietnamese: string;
61
+ 'latin-ext': string;
62
+ latin: string;
63
+ };
64
+ '800': {
65
+ 'cyrillic-ext': string;
66
+ cyrillic: string;
67
+ vietnamese: string;
68
+ 'latin-ext': string;
69
+ latin: string;
70
+ };
71
+ '900': {
72
+ 'cyrillic-ext': string;
73
+ cyrillic: string;
74
+ vietnamese: string;
75
+ 'latin-ext': string;
76
+ latin: string;
77
+ };
78
+ };
79
+ };
80
+ subsets: string[];
81
+ };
82
+ export declare const fontFamily: "Nata Sans";
83
+ type Variants = {
84
+ normal: {
85
+ weights: '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
86
+ subsets: 'cyrillic' | 'cyrillic-ext' | 'latin' | 'latin-ext' | 'vietnamese';
87
+ };
88
+ };
89
+ export declare const loadFont: <T extends keyof Variants>(style?: T, options?: {
90
+ weights?: Variants[T]["weights"][];
91
+ subsets?: Variants[T]["subsets"][];
92
+ document?: Document;
93
+ ignoreTooManyRequestsWarning?: boolean;
94
+ }) => {
95
+ fontFamily: import("./base").FontInfo["fontFamily"];
96
+ fonts: import("./base").FontInfo["fonts"];
97
+ unicodeRanges: import("./base").FontInfo["unicodeRanges"];
98
+ waitUntilDone: () => Promise<undefined>;
99
+ };
100
+ export {};
@@ -0,0 +1,91 @@
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: 'Nata Sans',
7
+ importName: 'NataSans',
8
+ version: 'v1',
9
+ url: 'https://fonts.googleapis.com/css2?family=Nata+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,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
+ 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',
14
+ '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',
15
+ 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',
16
+ },
17
+ fonts: {
18
+ normal: {
19
+ '100': {
20
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-ws4avEU.woff2',
21
+ cyrillic: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-y84avEU.woff2',
22
+ vietnamese: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-wM4avEU.woff2',
23
+ 'latin-ext': 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-wc4avEU.woff2',
24
+ latin: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-z84a.woff2',
25
+ },
26
+ '200': {
27
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-ws4avEU.woff2',
28
+ cyrillic: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-y84avEU.woff2',
29
+ vietnamese: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-wM4avEU.woff2',
30
+ 'latin-ext': 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-wc4avEU.woff2',
31
+ latin: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-z84a.woff2',
32
+ },
33
+ '300': {
34
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-ws4avEU.woff2',
35
+ cyrillic: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-y84avEU.woff2',
36
+ vietnamese: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-wM4avEU.woff2',
37
+ 'latin-ext': 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-wc4avEU.woff2',
38
+ latin: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-z84a.woff2',
39
+ },
40
+ '400': {
41
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-ws4avEU.woff2',
42
+ cyrillic: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-y84avEU.woff2',
43
+ vietnamese: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-wM4avEU.woff2',
44
+ 'latin-ext': 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-wc4avEU.woff2',
45
+ latin: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-z84a.woff2',
46
+ },
47
+ '500': {
48
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-ws4avEU.woff2',
49
+ cyrillic: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-y84avEU.woff2',
50
+ vietnamese: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-wM4avEU.woff2',
51
+ 'latin-ext': 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-wc4avEU.woff2',
52
+ latin: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-z84a.woff2',
53
+ },
54
+ '600': {
55
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-ws4avEU.woff2',
56
+ cyrillic: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-y84avEU.woff2',
57
+ vietnamese: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-wM4avEU.woff2',
58
+ 'latin-ext': 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-wc4avEU.woff2',
59
+ latin: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-z84a.woff2',
60
+ },
61
+ '700': {
62
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-ws4avEU.woff2',
63
+ cyrillic: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-y84avEU.woff2',
64
+ vietnamese: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-wM4avEU.woff2',
65
+ 'latin-ext': 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-wc4avEU.woff2',
66
+ latin: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-z84a.woff2',
67
+ },
68
+ '800': {
69
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-ws4avEU.woff2',
70
+ cyrillic: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-y84avEU.woff2',
71
+ vietnamese: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-wM4avEU.woff2',
72
+ 'latin-ext': 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-wc4avEU.woff2',
73
+ latin: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-z84a.woff2',
74
+ },
75
+ '900': {
76
+ 'cyrillic-ext': 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-ws4avEU.woff2',
77
+ cyrillic: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-y84avEU.woff2',
78
+ vietnamese: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-wM4avEU.woff2',
79
+ 'latin-ext': 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-wc4avEU.woff2',
80
+ latin: 'https://fonts.gstatic.com/s/natasans/v1/1q2EY5KBClBit88SU_t-z84a.woff2',
81
+ },
82
+ },
83
+ },
84
+ subsets: ['cyrillic', 'cyrillic-ext', 'latin', 'latin-ext', 'vietnamese'],
85
+ });
86
+ exports.getInfo = getInfo;
87
+ exports.fontFamily = 'Nata Sans';
88
+ const loadFont = (style, options) => {
89
+ return (0, base_1.loadFonts)((0, exports.getInfo)(), style, options);
90
+ };
91
+ exports.loadFont = loadFont;
@@ -13,6 +13,18 @@ export declare const getInfo: () => {
13
13
  'latin-ext': string;
14
14
  latin: string;
15
15
  };
16
+ '500': {
17
+ 'latin-ext': string;
18
+ latin: string;
19
+ };
20
+ '600': {
21
+ 'latin-ext': string;
22
+ latin: string;
23
+ };
24
+ '700': {
25
+ 'latin-ext': string;
26
+ latin: string;
27
+ };
16
28
  };
17
29
  };
18
30
  subsets: string[];
@@ -20,7 +32,7 @@ export declare const getInfo: () => {
20
32
  export declare const fontFamily: "Special Gothic";
21
33
  type Variants = {
22
34
  normal: {
23
- weights: '400';
35
+ weights: '400' | '500' | '600' | '700';
24
36
  subsets: 'latin' | 'latin-ext';
25
37
  };
26
38
  };
@@ -5,8 +5,8 @@ const base_1 = require("./base");
5
5
  const getInfo = () => ({
6
6
  fontFamily: 'Special Gothic',
7
7
  importName: 'SpecialGothic',
8
- version: 'v2',
9
- url: 'https://fonts.googleapis.com/css2?family=Special+Gothic:ital,wght@0,400',
8
+ version: 'v3',
9
+ url: 'https://fonts.googleapis.com/css2?family=Special+Gothic:ital,wght@0,400;0,500;0,600;0,700',
10
10
  unicodeRanges: {
11
11
  '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
12
  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',
@@ -14,8 +14,20 @@ const getInfo = () => ({
14
14
  fonts: {
15
15
  normal: {
16
16
  '400': {
17
- 'latin-ext': 'https://fonts.gstatic.com/s/specialgothic/v2/1q2fY5WcG0Fg_v0fHc8BvIZ251ToXoCZgg.woff2',
18
- latin: 'https://fonts.gstatic.com/s/specialgothic/v2/1q2fY5WcG0Fg_v0fHc8BvIZ251TmXoA.woff2',
17
+ 'latin-ext': 'https://fonts.gstatic.com/s/specialgothic/v3/1q2SY5WcG0Fg_v0fHc8BvIZ2537qdm1JEt9N3w2mJykkEFoQfr4.woff2',
18
+ latin: 'https://fonts.gstatic.com/s/specialgothic/v3/1q2SY5WcG0Fg_v0fHc8BvIZ2537qdm1JEt9N3w2mJykkHloQ.woff2',
19
+ },
20
+ '500': {
21
+ 'latin-ext': 'https://fonts.gstatic.com/s/specialgothic/v3/1q2SY5WcG0Fg_v0fHc8BvIZ2537qdm1JEt9N3w2mJykkEFoQfr4.woff2',
22
+ latin: 'https://fonts.gstatic.com/s/specialgothic/v3/1q2SY5WcG0Fg_v0fHc8BvIZ2537qdm1JEt9N3w2mJykkHloQ.woff2',
23
+ },
24
+ '600': {
25
+ 'latin-ext': 'https://fonts.gstatic.com/s/specialgothic/v3/1q2SY5WcG0Fg_v0fHc8BvIZ2537qdm1JEt9N3w2mJykkEFoQfr4.woff2',
26
+ latin: 'https://fonts.gstatic.com/s/specialgothic/v3/1q2SY5WcG0Fg_v0fHc8BvIZ2537qdm1JEt9N3w2mJykkHloQ.woff2',
27
+ },
28
+ '700': {
29
+ 'latin-ext': 'https://fonts.gstatic.com/s/specialgothic/v3/1q2SY5WcG0Fg_v0fHc8BvIZ2537qdm1JEt9N3w2mJykkEFoQfr4.woff2',
30
+ latin: 'https://fonts.gstatic.com/s/specialgothic/v3/1q2SY5WcG0Fg_v0fHc8BvIZ2537qdm1JEt9N3w2mJykkHloQ.woff2',
19
31
  },
20
32
  },
21
33
  },
package/dist/cjs/index.js CHANGED
@@ -4027,6 +4027,16 @@ const getAvailableFonts = () => [
4027
4027
  importName: 'LibertinusMono',
4028
4028
  load: () => Promise.resolve().then(() => __importStar(require('./LibertinusMono'))),
4029
4029
  },
4030
+ {
4031
+ fontFamily: 'Libertinus Sans',
4032
+ importName: 'LibertinusSans',
4033
+ load: () => Promise.resolve().then(() => __importStar(require('./LibertinusSans'))),
4034
+ },
4035
+ {
4036
+ fontFamily: 'Libertinus Serif',
4037
+ importName: 'LibertinusSerif',
4038
+ load: () => Promise.resolve().then(() => __importStar(require('./LibertinusSerif'))),
4039
+ },
4030
4040
  {
4031
4041
  fontFamily: 'Libre Barcode 128',
4032
4042
  importName: 'LibreBarcode128',
@@ -4757,6 +4767,16 @@ const getAvailableFonts = () => [
4757
4767
  importName: 'MouseMemoirs',
4758
4768
  load: () => Promise.resolve().then(() => __importStar(require('./MouseMemoirs'))),
4759
4769
  },
4770
+ {
4771
+ fontFamily: 'Mozilla Headline',
4772
+ importName: 'MozillaHeadline',
4773
+ load: () => Promise.resolve().then(() => __importStar(require('./MozillaHeadline'))),
4774
+ },
4775
+ {
4776
+ fontFamily: 'Mozilla Text',
4777
+ importName: 'MozillaText',
4778
+ load: () => Promise.resolve().then(() => __importStar(require('./MozillaText'))),
4779
+ },
4760
4780
  {
4761
4781
  fontFamily: 'Mr Bedfort',
4762
4782
  importName: 'MrBedfort',
@@ -4882,6 +4902,11 @@ const getAvailableFonts = () => [
4882
4902
  importName: 'Narnoor',
4883
4903
  load: () => Promise.resolve().then(() => __importStar(require('./Narnoor'))),
4884
4904
  },
4905
+ {
4906
+ fontFamily: 'Nata Sans',
4907
+ importName: 'NataSans',
4908
+ load: () => Promise.resolve().then(() => __importStar(require('./NataSans'))),
4909
+ },
4885
4910
  {
4886
4911
  fontFamily: 'National Park',
4887
4912
  importName: 'NationalPark',
@@ -0,0 +1,175 @@
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/LibertinusSans.ts
110
+ var getInfo = () => ({
111
+ fontFamily: "Libertinus Sans",
112
+ importName: "LibertinusSans",
113
+ version: "v1",
114
+ url: "https://fonts.googleapis.com/css2?family=Libertinus+Sans:ital,wght@0,400;0,700;1,400",
115
+ unicodeRanges: {
116
+ "cyrillic-ext": "U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F",
117
+ cyrillic: "U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116",
118
+ "greek-ext": "U+1F00-1FFF",
119
+ greek: "U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF",
120
+ vietnamese: "U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB",
121
+ "latin-ext": "U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF",
122
+ latin: "U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"
123
+ },
124
+ fonts: {
125
+ italic: {
126
+ "400": {
127
+ "cyrillic-ext": "https://fonts.gstatic.com/s/libertinussans/v1/YA9Jr0-a6k7ZLbw_dle4knJh2cq8jOfb1dRUYw.woff2",
128
+ cyrillic: "https://fonts.gstatic.com/s/libertinussans/v1/YA9Jr0-a6k7ZLbw_dle4knJh2cq8jOfS1dRUYw.woff2",
129
+ "greek-ext": "https://fonts.gstatic.com/s/libertinussans/v1/YA9Jr0-a6k7ZLbw_dle4knJh2cq8jOfa1dRUYw.woff2",
130
+ greek: "https://fonts.gstatic.com/s/libertinussans/v1/YA9Jr0-a6k7ZLbw_dle4knJh2cq8jOfV1dRUYw.woff2",
131
+ vietnamese: "https://fonts.gstatic.com/s/libertinussans/v1/YA9Jr0-a6k7ZLbw_dle4knJh2cq8jOfZ1dRUYw.woff2",
132
+ "latin-ext": "https://fonts.gstatic.com/s/libertinussans/v1/YA9Jr0-a6k7ZLbw_dle4knJh2cq8jOfY1dRUYw.woff2",
133
+ latin: "https://fonts.gstatic.com/s/libertinussans/v1/YA9Jr0-a6k7ZLbw_dle4knJh2cq8jOfW1dQ.woff2"
134
+ }
135
+ },
136
+ normal: {
137
+ "400": {
138
+ "cyrillic-ext": "https://fonts.gstatic.com/s/libertinussans/v1/YA9Lr0-a6k7ZLbw_dle4knJh2cq8hNfUzdA.woff2",
139
+ cyrillic: "https://fonts.gstatic.com/s/libertinussans/v1/YA9Lr0-a6k7ZLbw_dle4knJh2cq8jdfUzdA.woff2",
140
+ "greek-ext": "https://fonts.gstatic.com/s/libertinussans/v1/YA9Lr0-a6k7ZLbw_dle4knJh2cq8hdfUzdA.woff2",
141
+ greek: "https://fonts.gstatic.com/s/libertinussans/v1/YA9Lr0-a6k7ZLbw_dle4knJh2cq8itfUzdA.woff2",
142
+ vietnamese: "https://fonts.gstatic.com/s/libertinussans/v1/YA9Lr0-a6k7ZLbw_dle4knJh2cq8htfUzdA.woff2",
143
+ "latin-ext": "https://fonts.gstatic.com/s/libertinussans/v1/YA9Lr0-a6k7ZLbw_dle4knJh2cq8h9fUzdA.woff2",
144
+ latin: "https://fonts.gstatic.com/s/libertinussans/v1/YA9Lr0-a6k7ZLbw_dle4knJh2cq8idfU.woff2"
145
+ },
146
+ "700": {
147
+ "cyrillic-ext": "https://fonts.gstatic.com/s/libertinussans/v1/YA9Or0-a6k7ZLbw_dle4knJh2cq0MvLB__FpWik.woff2",
148
+ cyrillic: "https://fonts.gstatic.com/s/libertinussans/v1/YA9Or0-a6k7ZLbw_dle4knJh2cq0MvLB9vFpWik.woff2",
149
+ "greek-ext": "https://fonts.gstatic.com/s/libertinussans/v1/YA9Or0-a6k7ZLbw_dle4knJh2cq0MvLB_vFpWik.woff2",
150
+ greek: "https://fonts.gstatic.com/s/libertinussans/v1/YA9Or0-a6k7ZLbw_dle4knJh2cq0MvLB8fFpWik.woff2",
151
+ vietnamese: "https://fonts.gstatic.com/s/libertinussans/v1/YA9Or0-a6k7ZLbw_dle4knJh2cq0MvLB_fFpWik.woff2",
152
+ "latin-ext": "https://fonts.gstatic.com/s/libertinussans/v1/YA9Or0-a6k7ZLbw_dle4knJh2cq0MvLB_PFpWik.woff2",
153
+ latin: "https://fonts.gstatic.com/s/libertinussans/v1/YA9Or0-a6k7ZLbw_dle4knJh2cq0MvLB8vFp.woff2"
154
+ }
155
+ }
156
+ },
157
+ subsets: [
158
+ "cyrillic",
159
+ "cyrillic-ext",
160
+ "greek",
161
+ "greek-ext",
162
+ "latin",
163
+ "latin-ext",
164
+ "vietnamese"
165
+ ]
166
+ });
167
+ var fontFamily = "Libertinus Sans";
168
+ var loadFont = (style, options) => {
169
+ return loadFonts(getInfo(), style, options);
170
+ };
171
+ export {
172
+ loadFont,
173
+ getInfo,
174
+ fontFamily
175
+ };