Skip to content

CutBear v0.1.3

Choose a tag to compare

@morganlowe morganlowe released this 05 Dec 05:09
· 5 commits to main since this release

CutBear v0.1.3

This release contains 26 categorized changes. Release highlight: Cutter geometry extraction now lives in CutBear.

Changes

Changed

  • Cutter geometry extraction now lives in CutBear. SVG direct-cut paths and
    text glyph outlines are shaped with resvg and cosmic-text in
    cutbear-plotter, so cutting no longer depends on PhotoBear engine APIs.

Added

  • Autosave and crash recovery for open projects. Changed documents are
    snapshotted as lossless .rpsd files under the user state directory, the
    header marks unsaved changes with *, and a snapshot left by a crash is
    restored with its original source path on the next launch. A clean shutdown
    removes the recovery files.
  • Regression tests for autosave snapshots, launch recovery, the dirty marker,
    and shutdown cleanup.
  • SVG and PDF text outlining. Imported text is shaped with the installed
    fonts and becomes true glyph contours before cutting, including rotated
    text. A missing font is reported and only that text is skipped; PDF and AI
    path operators keep importing exactly as before.
  • Regression tests for SVG text and PDF text rotations, missing fonts, and
    existing paths that must keep their geometry.
  • Subtract, Intersect, and Exclude controls in the Design panel. Each
    operation combines the active closed vector path with a picked layer and
    replaces both inputs with the result, so the canvas has one combined layer.
  • A Show cut order option in the cut simulation. The preview numbers each
    path, marks its start point, and draws travel moves between paths so the
    order can be reviewed before sending.
  • Adobe Illustrator (.ai) files open through the PDF-compatible importer in
    both the app and the CLI, with the same path-only limits and warnings.
  • Malformed-input tests for PDF, DXF, and SVG import, so truncated streams,
    bad numbers, and incomplete markup are rejected instead of panicking.
  • EPS and PostScript import. Filled and stroked paths keep their exact cubic
    Bezier curves, so a vector file like ohgeeze.eps cuts as drawn instead of
    tracing a raster companion. The page comes from the file's bounding box,
    arcs and rounded corners become curves, show text is outlined through its
    findfont font as glyph curves, and images, clipping, and shadings are
    reported and skipped, and cutbear-cli inspect reads the same files. A raster file with an .eps or
    .ps companion offers to import the vector file instead.
  • A Design panel in the standalone app with live type and path offsets, so a
    design can be finished without going back to PhotoBear. Type picks from the
    fonts installed on this machine, sets size and tracking in millimetres on the
    vinyl, and keeps editing like any other layer. Convert to outlines replaces
    the type with the font's true glyph paths, and a drag records one undo step.
    Outset and Inset offset the active vector layer into a new layer, leaving the
    original editable; open paths are reported instead of offset.
  • Declarative machine profiles. A key = value file in the machines
    directory (~/.config/cutbear/machines/*.ini, or CUTBEAR_MACHINES) adds a
    machine to the Setup menu next to the built-in cutters, with its own limits,
    serial settings, and setup note. One bad file reports its name and line
    instead of hiding the rest, and packaging/machines/example.ini is a
    template to copy.
  • Manual print-and-cut. Print marks adds registration crosses inside the cut
    artwork and leaves them out of the cut, and Print & Cut turns and scales the
    job to two measured marks, so the cut follows the printed sheet. The
    alignment refuses marks that are too close or a length that is off by more
    than 25%, and reports when the aligned cut would run off the media.
  • Cut simulation in the standalone preview. Simulate, Pause, Replay, and Reset
    move a cutter head along the selected sheet at its feed rate, draw the
    completed path in orange, and scrub to any cutter position before sending.
  • Per-layer through, score, and ignore roles in the Layers pane. A mixed sign
    can put fold lines on score layers and the outline on through layers; the
    score job runs first and the outline second on one port and one loaded
    media, so the two stay on the same origin. Score force and speed are
    separate from the outline, and the outline keeps the blade offset, overcut,
    and weeding box. CutFlow and spawn_flow in cutbear-plotter build and
    send the two jobs.
  • Boolean weld of overlapping closed paths in cutbear-core, exposed as
    Weld overlapping paths in the app and --weld in the CLI. Subtract,
    intersect, and exclude share the tested operation and now have Design-panel
    controls.
  • A calibration pattern of a ruler, nested squares, cross, and scale bar, plus
    solve_scale, solve_origin, and correction_notes; cutbear-cli calibrate writes it as HP-GL.
  • Per-machine scale and origin correction stored with the job preset and
    applied after placement, with Scale X, Scale Y, Origin X, and Origin Y
    controls in the app.
  • Object-aware selection cuts: when the mask covers a whole vector layer, its
    true geometry is cut instead of the pixel boundary.
  • Preflight measures the gap between non-adjacent segments, so a long thin
    sliver is reported even when every chord is long.

Changed

  • Inches or millimetres can be selected for every measurement: sheet and
    tiled layout sizes, offsets and overlaps, custom cutter limits, preflight
    findings, placement warnings, calibration guidance, and new-project sizes.
    The CLI accepts a global --units mm|in and uses it for printed values and
    length options. Stored geometry stays in millimetres.
  • Boolean Weld fails closed: if the artwork is above the 8,000 segment
    limit or its kept edges cannot be chained into closed loops, it returns a
    warning and no geometry, and the production pipeline cuts the paths
    unmerged. Regression fixtures cover overlapping lettering, counters,
    shared and coincident edges, corner contacts, and the segment limit.
  • Duplicate paths are detected within a tolerance (0.05 mm by default)
    instead of only exactly equal geometry, so near-duplicate imports are
    removed and reported.
  • Duplicate detection and self-intersection checks use bucket indexes instead
    of comparing every pair, and the collinear tolerance in segment
    intersection tests is scaled by segment length.
  • The CLI prints cut length rather than labelling it as travel.
  • The README no longer claims text and raster layers cut directly.

Verification

  • cargo fmt --all -- --check passed for the tagged commit.
  • make gate passed (Clippy with warnings denied and the full offline test suite).
  • cargo build --release --locked completed on Linux.
  • cutbear --help and cutbear-cli --help smoke checks passed on Linux.

Assets

Asset SHA-256
cutbear-linux-x86_64.tar.gz fd50526eb79c60fded60bdd1ad133912ffa336787451432af3e0f4d884a32f1b
cutbear_0.1.3_amd64.deb c848bbf6edbede9fddef721954213bc5a6a0827f2bc84d6e07a269a356a749d4

SHA-256 manifests are also published as SHA256SUMS-*.txt files.

Compare

v0.1.2...v0.1.3