Repository navigation
Description
Scope
Reproduced preservation discrepancy, split from #2238 (A10); regression tests are in #2237. This issue tracks one finding, including any shared DXF/DWG manifestations.
The first witness is R2007, not an older version without the native representation. Related feature issue #532; distinguish this from the DXF group-48 collision (A9).
Observed result
The R2007 witness changes a three-column static definition to None. This is separate from A9's shared-group interpretation.
Expected result / decision required
Preserve the native-representable MTEXT column definition in supported versions, including kind, count, gutter, height and flow settings.
Reproduction
Evidence baseline: upstream c3b8e7b7 plus test head f6f79013d2b03c4dd1cd9c50ffc568272cd1feeb from PR #2237, macOS arm64, acadrust 0.6.6. The tests were explicitly run on 2026-10-27 and failed. Until the PR merges, use that test head; these test names are not yet assumed available on upstream main.
cargo test -p cadcraft-io --test it 'roundtrip::dwg::extended::mtext_columns' -- --ignored --exactEach command currently exits nonzero with the relevant assertion. These tests are ignored in normal CI, so running without --ignored is not a reproduction. A test family stops at its first failing case: the witnessed version is not proof that all versions/cases have been reached.
Exact test sources
All inputs are synthetic. No reference-application drawing or proprietary asset is required. Native DWG inspection, where used, still relies on the same codec; no independent-codec interoperability claim is made.
Acceptance
- Resolve this finding against the expected result/decision above, without broad comparison tolerances or first-save normalization.
- Run all listed checks, passing neighboring families and the applicable save-version/encoding domain.
- Enable the corresponding regression(s) when the reviewed contract is satisfied; for a representation decision, record its rationale and add geometry/reference-integrity checks as needed.
- Link the resolution back to DXF/DWG preservation: track 27 pending checks and round-trip follow-ups #2238 (A10).
Related work
- Related feature work feat(text): MTEXT columns, bullets/numbering, tabs and indents, FIELD/UPDATEFIELD, SPELL; in-place editor (gaps.md F9) #532; this is a preservation regression, not a request for another columns UI.
Activity
ticket-craft commentedon Oct 27, 2026
Possibly related: #2247 and #532.
assamaral commentedon Oct 28, 2026
Checked in ZWCAD 2025 (Windows 11) with a minimal ezdxf drawing, converted with
cadcraft-cli convertbuilt from main 5654240 (+ the #2333 fix) to DXF and DWG, then opened in ZWCAD and re-exported with DXFOUT; groups compared with ezdxf against a control (the source DXF opened and re-exported by ZWCAD the same way). All data synthetic.MTEXT with 3 static columns written the R2018 way (ezdxf
MTextColumns.new_static_columns(3, 12.5, 2.5, 20)→101 Embedded Object … 71 1 72 3 44 12.5 45 2.5) → CADCraft's DXF and ZWCAD's DXFOUT of CADCraft's DWG (R2018): no embedded object, no column groups — single column — and the MTEXT's line-spacing factor becomes44 12.5(the embedded object's column width read as group 44 of the main entity). Control re-export keeps72 3 44 12.5 45 2.5in the embedded object. Confirmed (static columns dropped), plus the 44 collision, which is the same family as #2247 (groups of the embedded object read with the main entity's meaning).With the legacy-group input of #2247 the R2018 DWG does keep count/width/gutter (
72 3 44 12.5 45 2.5after ZWCAD), but the column heights (20) come back as41 0.0.assamaral commentedon Oct 29, 2026
Same family seen in the DXF output too (combo build, v0.14.0 + #2107 + #2132 + #2400; ZWCAD 2025 DXFOUT compared with the original). For 2375 single-line MTEXT carrying an
Embedded Objectcolumn block (entity 71=5, 72=5, then 101 Embedded Object ... 44=38.8, 45=12.5), the output has 72=1 (flow direction 5 "by style" lost), 73=1 and an entity-level 44=38.8 (the column width, read back by ZWCAD as line spacing factor 38.8 instead of 1.0); the Embedded Object block is not written. ZWCAD reports attachment point 5 for the output and 1 for the original, so the text is placed differently. This is the main remaining pixel difference of the DXF output (1.2 % to 2.3 % XOR at 150 dpi; the original opened twice gives 0 %).assamaral commentedon Oct 29, 2026
Fix in #2467: the reader took the embedded object's 44 as the line spacing factor and never read its columns; the writer wrote the legacy 75..79 groups, no embedded object and 72 = 1. Now R2018 files get the embedded object back (and 72 = 5). Tested in ZWCAD 2025 (synthetic ezdxf, DXF and DWG, same groups as the control).
Merge pull request #2525 from storytold/land/2467
test(io): an MTEXT's R2018 embedded column object is read and written (…
fix(io): an MTEXT's R2018 embedded column object is kept and its grou…
fix(io): the embedded column object carries the column height like Au…
test(io): an MTEXT's R2018 embedded column object is read and written (…
fix(io): an MTEXT's R2018 embedded column object is kept and its grou…
fix(io): the embedded column object carries the column height like Au…