@remotion/google-fonts 3.3.53 → 3.3.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/base.d.ts CHANGED
@@ -6,6 +6,14 @@ export declare type FontInfo = {
6
6
  unicodeRanges: Record<string, string>;
7
7
  fonts: Record<string, Record<string, Record<string, string>>>;
8
8
  };
9
+ /**
10
+ * @description Load a Google Font for use in Remotion.
11
+ * @param meta
12
+ * @param {string} style The font style we want to load. While each font has a different set of styles, common options are: normal, italic etc.
13
+ * @param {Array} options
14
+ * @returns An object with the following properties: fontFamily, unicodeRanges, fonts
15
+ * @see [Documentation](https://www.remotion.dev/docs/google-fonts/load-font)
16
+ */
9
17
  export declare const loadFonts: (meta: FontInfo, style?: string, options?: {
10
18
  weights?: string[];
11
19
  subsets?: string[];
package/dist/base.js CHANGED
@@ -3,6 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loadFonts = void 0;
4
4
  const remotion_1 = require("remotion");
5
5
  const loadedFonts = {};
6
+ /**
7
+ * @description Load a Google Font for use in Remotion.
8
+ * @param meta
9
+ * @param {string} style The font style we want to load. While each font has a different set of styles, common options are: normal, italic etc.
10
+ * @param {Array} options
11
+ * @returns An object with the following properties: fontFamily, unicodeRanges, fonts
12
+ * @see [Documentation](https://www.remotion.dev/docs/google-fonts/load-font)
13
+ */
6
14
  const loadFonts = (meta, style, options) => {
7
15
  var _a, _b, _c, _d;
8
16
  const styles = style ? [style] : Object.keys(meta.fonts);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/google-fonts",
3
- "version": "3.3.53",
3
+ "version": "3.3.55",
4
4
  "description": "Load Google Fonts in Remotion",
5
5
  "scripts": {
6
6
  "build": "pnpm run generate && tsc -d",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "license": "SEE LICENSE IN LICENSE.md",
12
12
  "dependencies": {
13
- "remotion": "3.3.53"
13
+ "remotion": "3.3.55"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@types/css-font-loading-module": "^0.0.7",
@@ -5990,5 +5990,5 @@
5990
5990
  "./Sono": "./dist/Sono.js",
5991
5991
  "./Unbounded": "./dist/Unbounded.js"
5992
5992
  },
5993
- "gitHead": "b6d64c3ec91b55ac537765fda0b927c3a472b529"
5993
+ "gitHead": "4cecccc293e9c906c693f55fac65df8f1cfd2338"
5994
5994
  }