@shotstack/shotstack-studio 2.1.4 → 2.1.5
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/internal.es.js
CHANGED
|
@@ -47721,14 +47721,8 @@ var Cn = class ht {
|
|
|
47721
47721
|
async registerWithCanvas(t, i) {
|
|
47722
47722
|
if (!this.registeredCanvasFonts.has(t) && !(typeof window < "u"))
|
|
47723
47723
|
try {
|
|
47724
|
-
const a =
|
|
47725
|
-
|
|
47726
|
-
"canvas"
|
|
47727
|
-
)).GlobalFonts;
|
|
47728
|
-
if (a && typeof a.register == "function") {
|
|
47729
|
-
const s = Buffer.from(i);
|
|
47730
|
-
a.register(s, t), this.registeredCanvasFonts.add(t);
|
|
47731
|
-
}
|
|
47724
|
+
const a = { GlobalFonts: void 0 }.GlobalFonts;
|
|
47725
|
+
a && a.register;
|
|
47732
47726
|
} catch {
|
|
47733
47727
|
}
|
|
47734
47728
|
}
|