partforge 0.62.0 → 0.62.1
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/bin/cli.js +6 -1
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -76,9 +76,14 @@ async function loadPart(partPath, usage) {
|
|
|
76
76
|
return part;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
// Pass the part's declared fonts through, mirroring the worker path (jobs.js) —
|
|
80
|
+
// otherwise a part using a named font builds in the browser but dies headlessly
|
|
81
|
+
// with `text2d: unknown font …`.
|
|
79
82
|
const bootKernel = (part) => {
|
|
80
83
|
const backend = process.env.PARTFORGE_BACKEND || detectBackend(part); // env: crash()'s NEEDS_OCCT retry
|
|
81
|
-
return backend === "occt"
|
|
84
|
+
return backend === "occt"
|
|
85
|
+
? bootOcctKernel({ fonts: part.fonts })
|
|
86
|
+
: bootManifoldKernel({ fonts: part.fonts });
|
|
82
87
|
};
|
|
83
88
|
|
|
84
89
|
const commands = {
|
package/package.json
CHANGED