mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-22 03:33:01 -05:00
* Legacy form fields are drawn: check boxes, and drop-downs' selected entry Legacy form fields keep their w:ffData since the last round, but were not drawn: a FORMCHECKBOX has an empty result, so a form of check boxes came out with none, and a FORMDROPDOWN showed its saved result rather than its selected entry. - wordcraft-doc: `legacy_form` reads what layout needs from the kept w:ffData (kind, name, check box state and size, drop-down entries and selection, text field length); `InlineObject::legacy_form()`. - wordcraft-layout: a check box takes the text line's height of room and is drawn as Word draws it; a drop-down shows its selected entry (w:result, else w:default, else the first). Measured on Word's PDF export with a synthetic document (Calibri): text size | Word square | WordCraft 8 pt | 7.44 | 7.45 10 pt | 9.96 | 9.89 12 pt | 12.36 | 12.33 20 pt | 22.08 | 22.09 w:size 15 | 16.08 | 15.99 The square sits 1.16 pt inside the line height on every side (room on the line within 0.2 pt of Word's), has a 0.72 pt border and, checked, an X from corner to corner in 0.48 pt lines; w:checked beats w:default. docs/file-format-parity.md is updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Draw::Shape takes the dash list main added --------- Co-authored-by: Daniele Mori <Dinasty@hotmail.it> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Brandon Thomas <echelon@gmail.com>