Skip to content

DraftCraft 2.1.0: text picking, PDF curves, PDFIMPORT arcs and circles - #9

Merged
SkryxDev merged 1 commit into
mainfrom
release-2.1.0
Nov 10, 2026
Merged

SkryxDev merged 1 commit into
mainfrom
release-2.1.0

Conversation

@SkryxDev

Copy link
Copy Markdown
Member

What's new in DraftCraft 2.1.0

Fixed: picking near text

Turned text used to be picked anywhere inside its axis-aligned bounding box. For text at an angle,
that box is much larger than the words, so the text took clicks and hover meant for a line next to
it, at any pickbox size. Text is now hit inside its own box: around the letters, turned with the
text, as in AutoCAD. This applies to clicks, hover highlighting, crossing windows, TRIM/EXTEND edges
and selection cycling.

PDFs keep their curves

PLOT and EXPORTPDF now write arcs, circles, ellipses, splines and polylines with arc segments as
true Bézier curves, not hundreds of short line segments. The files are smaller, print smoother, and
can be edited properly in other programs. Dashed linetypes are still drawn dash by dash.

PDFIMPORT recognises geometry

PDFIMPORT (Insert › PDF Import) turns a PDF page's vectors into editable DraftCraft objects, and you
can save the result as DWG or DXF. It now recognises:

  • straight segments as lines;
  • circular curves as arcs and circles;
  • lines and arcs joined together as polylines with arc segments;
  • other curves as splines, fills as solid hatches, and text as text.

A PDF written by DraftCraft (or by any CAD program that writes arcs as Bézier curves) comes back as
the arcs, circles and polylines it was drawn with.

Downloads

Platform File
macOS (Apple silicon) draftcraft-macos-arm64.dmg
Windows x64 draftcraft-windows-x64.zip
Windows ARM64 draftcraft-windows-arm64.zip
Linux x64 draftcraft-linux-x86_64.AppImage
Command-line tool (macOS) draftcraft-cli-macos-arm64.zip

Already on 2.0.2? Use Update Now in the app's update window.

Testing

  • cargo xtask ci steps all pass locally except the three macOS-only tests AGENTS.md lists (APFS file names, Thai font).
  • New tests: pick_text (turned text vs. a line, letters-only box), bezier (geom), pdf_curves (writer emits c operators; dashed curves stay dashes; PDFIMPORT round trip gives CIRCLE/ARC/bulged polyline).
  • Checked in the running app: clicks next to turned text select the line; EXPORTPDF then PDFIMPORT then SAVEAS DWG keeps circles, arcs and polylines.

🤖 Generated with Claude Code

- Picking: TEXT, MTEXT and ATTDEF are hit inside the box around their
  letters, turned with the text, not inside their axis-aligned bounds.
  Turned text took clicks and hover meant for a line beside it at any
  pickbox size. Also for crossing windows and TRIM/EXTEND edges.
- PLOT / EXPORTPDF write arcs, circles, ellipses, splines and bulged
  polylines as exact Bezier curves instead of short lines (draftcraft-geom
  bezier module; DisplayList::curves for plots). Dashed, clipped or
  pen-filled strokes keep their polylines.
- PDFIMPORT reads circular Bezier curves back as ARC, CIRCLE and polylines
  with arc segments, and single straight segments as LINE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SkryxDev
SkryxDev merged commit 077cd77 into main Nov 10, 2026
1 check passed
@SkryxDev
SkryxDev deleted the release-2.1.0 branch November 11, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant