100 Commits
Author SHA1 Message Date
FredApps f7aa5bc1fc Merge pull request #8626 from storytold/fix/macos-build-native-menu
fix(macos): build again, and poll the native menu each frame
2026-11-28 22:38:31 +01:00
e5812b8f17 Document CRAFT_I18N_DIR in the environment table (#8621)
development.md listed the other build inputs but not CRAFT_I18N_DIR.

Co-authored-by: Fredrik Hallin <fredrik.hallin@guidelinegeo.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 21:25:16 +01:00
FredApps 0709c0dc1d fix(macos): build again, and poll the native menu each frame
- app/files.rs called macos_association::repair without the crate::
  path the other callers use. The line only compiles on macOS, so main
  hasn't built there since 2026-11-23 (nightly macOS red, #8595).
- The native menu's events are collected by NativeMenu::poll, and
  nothing called it after the UI port, so the menu bar's clicks and key
  equivalents stayed queued. menus::frame now polls once per frame,
  before set_gate, as craft-menu documents.

Carries the fix from #8166 by @patangay for the v0.23.0 release.

Refs #8595, #8624
Co-authored-by: patangay <176307+patangay@users.noreply.github.com>
2026-11-28 21:05:52 +01:00
FredApps 345b5b67cb Merge pull request #7286 from Combiler01/update/Browser-styled-tabs
ui-egui: add browser-styled tab grouping, pinned tabs & Animations
2026-11-28 17:48:10 +01:00
FredApps a64ecbd2e9 Merge pull request #6992 from Combiler01/FeatDel-confirm-popup
feat(ui): ask before deleting pages (#6872)
2026-11-28 17:06:05 +01:00
FredApps 6bc22c8902 fix(ui): dragging a group member to the edge of another group ungroups it
move_tab_in_strip left a dragged tab in its old group when it landed next to
a different group and not next to its own, so the tab carried group A's
colour inside group B's run. It now joins a group only when dropped between
two members of it (or next to its own group) and is ungrouped otherwise.

Adds a unit test that drags a member of group A behind the last member of
group B.
2026-11-28 17:04:53 +01:00
FredApps 81a475e55f Merge pull request #6982 from Combiler01/fix/freehand-highlight-icon
Fix: Use a dedicated icon for Freehand Highlight (#6961)
2026-11-27 23:30:26 +01:00
FredApps f076d5ef17 Merge pull request #7528 from Combiler01/fix/blank-password
Protect Using Password: allow setting open and permissions passwords together (#7401)
2026-11-27 23:29:20 +01:00
FredApps c34c6c5a0b Merge pull request #8435 from storytold/ci/repair-main-after-8168
CI: repair main's gate after #8168 (combines #8177–#8180, #8314, #8316, #8317)
2026-11-27 13:38:56 +01:00
FredApps ecc5737401 Organize: keep the numbered-name attachment test running
The previous change dropped the test attribute from set_attachments_does_not_clobber_later_numbered_attachment_name.
2026-11-27 09:42:34 +01:00
FredApps e5fd870737 Organize: keep a renamed UTF-16 attachment key aligned when the original ends mid-unit
A leftover last byte is not a unit, and readers leave it out when decoding. Dropping it before appending " (2)" keeps the suffix in the key's byte order, so the stored name is the decoded name plus the suffix rather than a misaligned string.
2026-11-27 09:41:15 +01:00
FredApps 76aec3fb9b Merge remote-tracking branch 'origin/main' into ci/repair-main-after-8168 2026-11-27 09:39:04 +01:00
FredApps d492d88902 Merge pull request #4538 from EricKaden/fix/xfa-dynamic-render-required
XFA: a form saved with its pages is laid out when it requires dynamic rendering, unless signed
2026-11-26 21:17:32 +01:00
FredApps f53cab766c Merge main into #4538 2026-11-26 20:27:19 +01:00
FredApps 7b82e3e7ae deny: pass the licence, source and advisory checks again
Allow CDLA-Permissive-2.0 (the certificate data in webpki-roots) and storytold's own repositories as git sources (vectorcraft-geom and vectorcraft-pathops come from storytold/vectorcraft). Lockfile only: url 2.5.8 to 2.5.9 (RUSTSEC-2026-0592, with form_urlencoded 1.2.3), async-executor 1.14.0 to 1.14.1 (yanked).
2026-11-26 20:08:24 +01:00
FredApps cbc1c52ba2 Merge remote-tracking branch 'origin/main' into ci/repair-main-after-8168 2026-11-26 20:07:50 +01:00
FredApps e862b77560 Merge pull request #4369 from EricKaden/fix/xfa-check-box-click-scripts
M12: XFA check boxes and radio buttons run their click scripts when a click changes them
2026-11-26 20:05:40 +01:00
FredApps 594e54fd03 deny: allow MPL-2.0 for unmodified third-party crates
standards/licences.md already allows MPL-2.0 for dependencies used unmodified (file-level copyleft, no obligation on our code). The crate option-ext, pulled in by dirs through craft-settings, uses it, and the deny check failed without this identifier on the allow list.
2026-11-26 19:56:56 +01:00
FredApps ecd98d7b15 Merge remote-tracking branch 'origin/main' into ci/repair-main-after-8168 2026-11-26 19:53:32 +01:00
FredApps e7860b9a38 Merge pull request #1021 from storytold/ci-speedup-nightly-platform-checks
CI: FreeBSD and Windows ARM64 nightly and on release, not per PR
2026-11-26 19:37:29 +01:00
FredApps 53b12279a9 Merge pull request #3523 from storytold/fix/3511-prune-image-resources
fix(edit): unlink unused image resources on delete
2026-11-26 19:37:22 +01:00
FredApps e7a812f531 Organize: read a little-endian attachment key in two-byte chunks with as_chunks 2026-11-26 19:34:24 +01:00
FredApps 18d9e1e66f Control test: find the shortcuts window's rows as a user does
The table lays out only the rows in view, so the test scrolls it to each command, and the keys the document view handles itself are listed under Show > Fixed Keys, so it picks that view before looking for them.
2026-11-26 19:28:20 +01:00
FredApps c7020ab493 Merge main into #4369
# Conflicts:
#	parity/acrobat-features.toml
2026-11-26 19:06:19 +01:00
FredApps 448cd37405 Merge main into #4538
# Conflicts:
#	parity/acrobat-features.toml
2026-11-26 19:06:02 +01:00
FredApps b3dcebb5f3 Merge pull request #4522 from EricKaden/fix/xfa-date-display-picture
M12: an XFA date field is shown through its display picture and typed in its edit picture's pattern
2026-11-26 18:53:01 +01:00
FredApps bd65e37b7d Merge pull request #3242 from MarekSpodBiedry/issue-3172
Fix blank glyphs inside overprinted numbers and word gaps next to taller glyphs in text extraction (#3172)
2026-11-26 18:28:15 +01:00
FredApps 54a3be06df Keyboard shortcuts window: labels in the interface language, grouped by menu
The window listed the command catalog the keys run on, which keeps English labels, so a translated interface showed English rows all under Other. It now lists each command as the menus label it, in the current language, with its English label kept for search, under the menu bar path that lists it, and relists them when the language changes while it is open.
2026-11-27 00:27:44 +07:00
FredApps ec0513414a Inserted attachments keep the encoding of a renamed name-tree key
A clashing key from an inserted or combined file is numbered as text, and " (2)" is appended in the key's own encoding: UTF-16 big- or little-endian after a byte-order mark, bytes after a PDFDocEncoding key. A little-endian key was read as PDFDocEncoding and rewritten as different UTF-16 text, so the renamed attachment lost its name.
2026-11-27 00:27:44 +07:00
FredApps 294f8b29cf Merge remote-tracking branch 'origin/main' into ci/repair-main-after-8168 2026-11-27 00:11:39 +07:00
FredApps 1e05eefeae Merge main into #4369 2026-11-27 00:10:52 +07:00
FredApps e4144bfdde Merge main into #4538 2026-11-27 00:09:02 +07:00
FredApps a462b8c6ad Merge main into #4522 2026-11-27 00:01:37 +07:00
FredApps e334d6d4be Merge pull request #4527 from EricKaden/fix/xfa-ready-events
XFA: ready events run in the other viewer's order, and layout:ready again after a new layout
2026-11-26 17:50:24 +01:00
FredApps 36d9fd7268 Merge pull request #3280 from ahmadmuj/fix/pdfcraft-3221-stm-refusal
Refuse unsafe stream-qualified tag mutations
2026-11-26 17:48:11 +01:00
FredApps d3428827db Merge pull request #2763 from kavishkashehan726-sudo/claude/serene-hawking-sk6w13
fix(engine): validate signed XFA forms as the file was read (#2759)
2026-11-26 17:37:19 +01:00
FredApps 328a1bca2b Merge main into #4538 2026-11-26 17:33:12 +01:00
FredApps 05f31ac058 Merge pull request #5470 from croquete1/fix/4744-repeat-min-instances
M12: um subformulário repetido mantém o mínimo de instâncias de occur, seja qual for o dado (#4744)
2026-11-26 17:27:42 +01:00
FredApps 2d45b068fc Keep the line's word-gap threshold beside a superscript under the script size floor (#3172) 2026-11-26 17:26:45 +01:00
FredApps 781ab07f8c Merge main into #4369 2026-11-26 23:23:46 +07:00
FredApps 3b5d24fdf5 Merge pull request #2268 from oracola91/ci/dependency-hygiene
CI: refuse yanked crates
2026-11-26 17:23:15 +01:00
FredApps cb061454b2 Merge main into #4522 2026-11-26 23:20:14 +07:00
FredApps f555f1574c Merge pull request #4576 from jonathanwxh-cell/fix/sign-revision-structure-3998
sign: validate signature dicts and post-signing changes against signed revision (#3998)
2026-11-26 17:16:48 +01:00
FredApps 6f9c05d8a1 Measure a combining mark's word-gap threshold by its cluster base (#3172) 2026-11-26 23:09:32 +07:00
FredApps 51e0ee118a Merge pull request #2189 from oracola91/fix/package-licence-files
The AppImage and PdfCraft.app ship the licence files and NOTICE
2026-11-26 17:07:37 +01:00
FredApps dc64a6f83e Use main's highlight_fields location in the frame's highlight sync (#4527) 2026-11-26 23:07:19 +07:00
FredApps 227ae94b22 Merge pull request #1218 from cyfung1031/codex/ci-failure-observability
CI: keep independent gates running after earlier failures
2026-11-26 17:06:00 +01:00
FredApps 0b47a83928 Merge main into #4527 2026-11-26 23:05:58 +07:00
FredApps c7b433206c Merge main into #3280
alt.rs: main now resolves indirect structure kids (#5611), checks the parent and computes the new parent /K before it reads the page, and marks content through decode_page_streams/Marked (damaged streams refuse). This PR's mutation_mcids ownership checks replace main's has_child_structure + mcids in both actions, and its reachable-parent check runs with main's parent checks, before any write. Since main validates the parent first, the missing-/P + missing-content case now refuses with NoParent (test renamed), still without mutation. tools.rs and roadmap keep main's text plus this PR's refusal notes.
2026-11-26 23:00:01 +07:00
FredApps 4825ebfbf2 Merge pull request #3526 from EricKaden/fix/xfa-hanging-indent
M12: a negative XFA text indent hangs the first line
2026-11-26 16:53:39 +01:00
FredApps c2bd7c14b7 Merge pull request #4604 from mtlcl410/fix/xfa-script-relayout-full-refresh
M12: an XFA form laid out again by its scripts rebuilds its pages in the view (#4603)
2026-11-26 16:51:38 +01:00
FredApps ea25e82618 Merge remote-tracking branch 'origin/main' into ic51-3242
# Conflicts:
#	crates/render/src/text/layout.rs
2026-11-26 16:51:16 +01:00
FredApps 814e19b00d Merge pull request #6590 from eliets2/fix/issue-3147-image-arrange-and-remove-crop-report-suc
Refuse image arrange and crop removal that change nothing
2026-11-26 16:49:51 +01:00
FredApps 3242e74de6 Control test: scroll the language list with the wheel until the chosen language is shown
The drop-down lays out only the rows in view, so a language further down has no widget until the list is scrolled, as a user does.
2026-11-26 16:49:43 +01:00
FredApps 8e8019a742 Format the click test's focus assertion 2026-11-26 16:49:37 +01:00
FredApps 308bc6cdfc Merge pull request #4025 from oracola91/ci/rsa-verification-only
Clippy keeps rsa verification-only (RUSTSEC-2023-0071)
2026-11-26 16:49:26 +01:00
FredApps cd7b5cefd0 Merge main into #2763
main split the engine's lib.rs into modules; the as-opened validation is ported: Editor::as_opened and AsOpened in history.rs, editor_signatures in doc_state.rs (used wherever an editor's signatures are validated), the as-read capture in open.rs, and mark_saved clearing it in session/save.rs. The test also pins the saved status (dynamic Invalid, static Valid).
2026-11-26 22:46:38 +07:00
FredApps bb4df817aa Merge pull request #3539 from KnottyDyes/squad/paragraph-grouping-breaks
Text: paragraphs respect typography and filled panels
2026-11-26 16:45:08 +01:00
FredApps 3e31bdeded Merge pull request #3722 from Hamza0101/fix/cjk-spread-labels
fix(text): character spacing is not a word gap in Chinese (#3713)
2026-11-26 16:40:41 +01:00
FredApps 4dd1991c60 Merge main into #3242
Conflicts: main now measures word gaps between clusters (cluster_gap, cluster_text) and skips gaps next to whitespace; the PR's per-pair threshold is applied to that gap. Both Scratch additions are kept.

Review fixes folded in: a sub- or superscript pair keeps the line's word-gap threshold (pair_threshold), only other runs' ink drops a blank (drop_covered_blanks), and the covered-blank test uses vec![] for clippy. Tests for both fixes.
2026-11-26 22:40:02 +07:00
FredApps 9a1d2b4d37 Merge pull request #4551 from dotCooCoo/fix/automation-reports-form-script-errors
fix(automation): doc_open and form_fill report the errors of the form's scripts
2026-11-26 16:39:05 +01:00
FredApps e8d7c3bec2 Merge pull request #2712 from marcoarnulfo/credits/marcoarnulfo
Contributors: add Marco Arnulfo
2026-11-26 16:38:40 +01:00
FredApps 885978a7b4 Merge pull request #3243 from MarekSpodBiedry/issue-3173
Drop a glyph redrawn at the same place by a later pass, not only within 4 glyphs (#3173)
2026-11-26 16:37:58 +01:00
FredApps 47a79c01e3 Merge pull request #3836 from jonathanwxh-cell/fix/glyphless-ocr-font-edit
fix(edit): substitute a visible font when editing glyphless OCR text
2026-11-26 16:36:54 +01:00
FredApps d14c41902f Merge pull request #2744 from rangoDJ/fix/cli-engine-minor-issues
fix(automation,edit): clean AcroForm leftovers on flatten and reject invalid opacity (#2670)
2026-11-26 16:35:01 +01:00
FredApps 6a8ce2537a Merge main into #5470 2026-11-26 22:33:52 +07:00
FredApps 10d0e155e6 Merge pull request #7009 from Piohrun/fix/redact-refusals-name-the-page
M8: a redaction refusal names its page
2026-11-26 16:33:13 +01:00
FredApps 9390aef4cb Merge main into #4576 2026-11-26 22:29:38 +07:00
FredApps 8351a4a991 Merge pull request #7158 from KenM76/feat/print-marks-bleeds
Print: printer's marks and bleed on the printed sheets (doc_print marks)
2026-11-26 16:26:42 +01:00
FredApps 547e70a2c3 Merge pull request #5363 from jonathanwxh-cell/fix/model-degenerate-page-boxes
fix(model): reject degenerate and overflowing page boxes in rect
2026-11-26 16:24:39 +01:00
FredApps 63384d5d3c Merge pull request #4598 from jonathanwxh-cell/fix/xfa-named-page-area-breaks-3910
fix(xfa): honour named pageArea targets on subform page breaks and overflow (#3910)
2026-11-26 16:23:48 +01:00
FredApps 497809244f Merge main into #4522 2026-11-26 22:22:03 +07:00
FredApps 1c2a179a62 Fit the landed changes together: the click test expects main's FocusField request 2026-11-26 22:18:15 +07:00
FredApps 2ebe4e6ac3 Merge main into #4369 2026-11-26 22:14:30 +07:00
FredApps 86ace6de4a xfa: a negative marginLeft without a hanging indent moves every line left again
indents() clamped marginLeft to at least the hang even when textIndent wasn't
negative, so a negative marginLeft stopped moving the lines left of the box as it
does on main. The margins are now as given unless textIndent is negative (review
note on #3526).
2026-11-26 22:10:46 +07:00
FredApps c63e7853e9 Merge main into #3526 2026-11-26 22:09:39 +07:00
FredApps e0b127218d Merge main into #2268 2026-11-26 22:08:47 +07:00
FredApps c210faff82 Merge main into #2189 2026-11-26 22:08:30 +07:00
FredApps 5a1f0efe3a Merge main into #1021 2026-11-26 22:08:13 +07:00
FredApps 9d54d7d3b9 render: halfwidth Hangul jamo keep Korean word gaps
is_hangul missed U+FFA0–U+FFDC, which is_cjk counts as CJK, so equal word gaps
between halfwidth jamo took the spread-Chinese no-space rule.
2026-11-26 21:59:11 +07:00
FredApps d7d6998792 render: the far redraw check's run end uses the segment rule for sub- and superscripts
follows() allowed half the smaller glyph's height off the line, where arrange
joins a sub- or superscript right next to its glyph within half the taller one's.
A glyph followed by its superscript then looked like a run end, and a later run
starting at its place lost that glyph.
2026-11-26 21:57:29 +07:00
FredApps 8856cb2753 Merge main into #3539 2026-11-26 21:55:31 +07:00
FredApps 88d7d838a5 Merge main into #3722 2026-11-26 21:52:23 +07:00
FredApps 0358f93e18 Merge main into #1218 2026-11-26 21:50:40 +07:00
FredApps 3fe021cb06 Merge main into #3243 2026-11-26 21:45:30 +07:00
FredApps ed169ea67f render: far redraw check reaches the vertical tolerance, many copies in a row print once, next kept glyph recorded
- The grid search around a glyph spans the larger of its horizontal and vertical
  redraw tolerances, so a tall, narrow glyph redrawn a little higher is found.
- The near check also compares the last kept glyph, so a fifth or later copy in a
  row (past the four-glyph window, and skipped by the far check as it follows that
  glyph) is dropped.
- Each kept glyph records the kept glyph after it when that one is kept, instead of
  rescanning the dropped glyphs in between for every candidate (quadratic on long
  runs of dropped copies).
2026-11-26 21:45:09 +07:00
FredApps d3850a77b0 Merge pull request #7704 from alehel/codex/fix-watermark-visible-crop
Fix PDF watermark source clipping to visible page bounds
2026-11-26 15:37:24 +01:00
FredApps fd7cde1413 Merge pull request #2901 from Coffeediff/fix/add-text-click-offset
M7: centre new added text on the click
2026-11-26 15:36:52 +01:00
FredApps 553de826f3 Merge main into #4604 2026-11-26 21:36:38 +07:00
FredApps c51d26df7e Merge main into #4551 2026-11-26 21:36:23 +07:00
FredApps 07805b423a Merge main into #3523 2026-11-26 21:36:16 +07:00
FredApps 8602f8dd45 Merge main into #5363 2026-11-26 21:36:09 +07:00
FredApps 6376e6dcea Merge main into #7158 2026-11-26 21:36:02 +07:00
FredApps 23b22024be Merge main into #4025 2026-11-26 21:35:54 +07:00
FredApps 4013da6814 Merge main into #2712 2026-11-26 21:35:48 +07:00
FredApps 99b75e1a6d Merge main into #6590 2026-11-26 21:35:40 +07:00
FredApps 026d6cffe3 Merge main into #7009 2026-11-26 21:35:34 +07:00
FredApps f5247f609c Merge main into #2744 2026-11-26 21:35:19 +07:00
FredApps dceab3ef3d Merge main into #4598 2026-11-26 21:35:12 +07:00
FredApps 2111032f47 Merge main into #3836 2026-11-26 21:35:05 +07:00