Versions: circuit-json-to-gltf 0.0.118, circuit-to-svg 0.0.413, @tscircuit/cli 0.1.2057. Linux/WSL2.
The GLB board texture's text advances differ from the PCB SVG's text allocation. A centered pcb_silkscreen_text of font_size=0.8 and text SN74LVC1G17DCKR v1.0 on a 10.4-mm-wide board is substantially cropped on both sides in the textured GLB, although the nominal SVG allocation (length * height * 0.6) fits the board. Increasing texture resolution to 4096 does not fix the geometry.
Repro: export that board with tsci build lib/index.tsx --svgs --glbs and compare the complete PCB SVG title with the texture in the top view of the GLB. No external CAD asset is required to reproduce text clipping.
Expected: one shared font/measurement implementation for source layout, SVG bounds, GLB texture generation and native export; fail or flag actual text overflow. Related KiCad substitution mismatch: tscircuit/cli#4719 .
Local workaround: keep canonical text metadata, bake the tscircuit stroke alphabet into paths fitted to the source's physical width/height on the GLB input copy, preserve a 0.10-mm stroke, and reject any text allocation crossing the board edge. This also preserves board/component textures; it is not a simplified model replacement. No upstream PR from this work is open.
Versions: circuit-json-to-gltf 0.0.118, circuit-to-svg 0.0.413, @tscircuit/cli 0.1.2057. Linux/WSL2.
The GLB board texture's text advances differ from the PCB SVG's text allocation. A centered
pcb_silkscreen_textof font_size=0.8 and textSN74LVC1G17DCKR v1.0on a 10.4-mm-wide board is substantially cropped on both sides in the textured GLB, although the nominal SVG allocation (length * height * 0.6) fits the board. Increasing texture resolution to 4096 does not fix the geometry.Repro: export that board with
tsci build lib/index.tsx --svgs --glbsand compare the complete PCB SVG title with the texture in the top view of the GLB. No external CAD asset is required to reproduce text clipping.Expected: one shared font/measurement implementation for source layout, SVG bounds, GLB texture generation and native export; fail or flag actual text overflow. Related KiCad substitution mismatch: tscircuit/cli#4719 .
Local workaround: keep canonical text metadata, bake the tscircuit stroke alphabet into paths fitted to the source's physical width/height on the GLB input copy, preserve a 0.10-mm stroke, and reject any text allocation crossing the board edge. This also preserves board/component textures; it is not a simplified model replacement. No upstream PR from this work is open.