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.
Files changed (2) hide show
  1. package/bin/cli.js +6 -1
  2. 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" ? bootOcctKernel() : bootManifoldKernel();
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "partforge",
3
- "version": "0.62.0",
3
+ "version": "0.62.1",
4
4
  "description": "Turn a declarative part definition into a parametric-CAD web app (three.js + Manifold/Replicad). Requires a Vite-based consumer.",
5
5
  "type": "module",
6
6
  "license": "MIT",