@remotion/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.
- package/dist/cjs/load-font.js +1 -1
- package/dist/esm/index.mjs +1 -1
- package/package.json +3 -3
package/dist/cjs/load-font.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.loadFont = void 0;
|
|
|
4
4
|
const remotion_1 = require("remotion");
|
|
5
5
|
const get_font_format_1 = require("./get-font-format");
|
|
6
6
|
const loadFont = async ({ family, url, ascentOverride, descentOverride, display, featureSettings, lineGapOverride, stretch, style, unicodeRange, weight, format, variant, }) => {
|
|
7
|
-
const waitForFont = (0, remotion_1.delayRender)();
|
|
7
|
+
const waitForFont = (0, remotion_1.delayRender)(`Loading font ${family} (url: ${url}, format: ${format}, weight: ${weight}, style: ${style}, variant: ${variant}, ascentOverride: ${ascentOverride}, descentOverride: ${descentOverride}, display: ${display}, featureSettings: ${featureSettings}, lineGapOverride: ${lineGapOverride}, stretch: ${stretch}, unicodeRange: ${unicodeRange})`);
|
|
8
8
|
try {
|
|
9
9
|
const fontFormat = format !== null && format !== void 0 ? format : (0, get_font_format_1.getFontFormat)(url);
|
|
10
10
|
const font = new FontFace(family, `url('${url}') format('${fontFormat}')`, {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -32,7 +32,7 @@ var loadFont = async ({
|
|
|
32
32
|
format,
|
|
33
33
|
variant
|
|
34
34
|
}) => {
|
|
35
|
-
const waitForFont = delayRender();
|
|
35
|
+
const waitForFont = delayRender(`Loading font ${family} (url: ${url}, format: ${format}, weight: ${weight}, style: ${style}, variant: ${variant}, ascentOverride: ${ascentOverride}, descentOverride: ${descentOverride}, display: ${display}, featureSettings: ${featureSettings}, lineGapOverride: ${lineGapOverride}, stretch: ${stretch}, unicodeRange: ${unicodeRange})`);
|
|
36
36
|
try {
|
|
37
37
|
const fontFormat = format ?? getFontFormat(url);
|
|
38
38
|
const font = new FontFace(family, `url('${url}') format('${fontFormat}')`, {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/fonts"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/fonts",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.303",
|
|
7
7
|
"description": "Helpers for loading local fonts into Remotion",
|
|
8
8
|
"main": "dist/cjs/index.js",
|
|
9
9
|
"types": "dist/cjs/index.d.ts",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"remotion": "4.0.
|
|
22
|
+
"remotion": "4.0.303"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"eslint": "9.19.0",
|
|
26
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
26
|
+
"@remotion/eslint-config-internal": "4.0.303"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|