The headless render path duplicated font collection, text measurer setup, and layout recomputation separately from the renderer. Move this into SkiaRenderer.prepareForExport() so browser and headless share the same code path for export preparation. Remove the now-redundant loadFonts from CLI headless and the manual setTextMeasurer/collectFontKeys/computeAllLayouts from headless-render. |
||
|---|---|---|
| .. | ||
| src | ||
| package.json | ||
| tsconfig.json | ||