Commit Graph
19657 Commits
Author SHA1 Message Date
BFlat 2e09e5135f Merge pull request #9046 from dotCooCoo/feat/quick-pen-arc-center-i9314
Pen: Quick Pen marks an arc's center with a cross while the arc is drawn
2026-11-24 16:05:16 +07:00
BFlat fd349e4d11 Merge pull request #9015 from dotCooCoo/fix/smooth-no-worse-pass
Smooth: a drag that would not make a path smoother leaves it as it was
2026-11-24 16:05:00 +07:00
BFlat 1bd8c8cb6e Merge pull request #8987 from dotCooCoo/fix/script-export-linked-files
Scripts: vc.run export of an open document reads its own linked files
2026-11-24 16:04:43 +07:00
BFlat 86a03fcdff Merge pull request #8986 from dotCooCoo/feat/dimension-alt-object-size
Dimension tool: Alt over a path places its overall width or height
2026-11-24 16:04:27 +07:00
BFlat 293dde3d19 Merge pull request #8981 from dotCooCoo/fix/smooth-region-bounds-prefilter
Smooth: a drag over a long path measures only the anchors and segments near it
2026-11-24 16:04:10 +07:00
BFlat 7d984fc7f3 Merge pull request #8964 from dotCooCoo/feat/plugin-manifest-section
Plug-ins: read the manifest from a custom section before running any code
2026-11-24 16:03:53 +07:00
BFlat b4696e31f6 Merge pull request #8933 from dotCooCoo/fix/relink-mask-matching-file-path-docs
Docs: a clipping mask that matches the old file's clipping path is relinked as the file's
2026-11-24 16:03:22 +07:00
BFlat 2d978d843c Merge pull request #8932 from dotCooCoo/fix/palette-typo-description-order
Command Palette: docs rank typo results that match a word by description last
2026-11-24 16:03:05 +07:00
BFlat eddd17cd27 Merge pull request #8921 from dotCooCoo/fix/missing-font-wrong-token-test
Tests: the missing-font question's tests check the open question and the clicked caret
2026-11-24 16:02:48 +07:00
BFlat d5b5980092 Merge pull request #8917 from dotCooCoo/fix/pdf-masked-cmyk-warp-image-size
PDF export: a distorted CMYK image with an image mask keeps the resolution its pieces need
2026-11-24 16:02:31 +07:00
BFlat ae0abde1a6 Merge pull request #8889 from dotCooCoo/fix/i18n-message-scan-escapes
i18n: the message scan reads string escapes the way Rust does
2026-11-24 16:02:14 +07:00
BFlat ca09a61d72 Merge pull request #8880 from dotCooCoo/fix/align-to-selection-anchors-docs
Align: align.toSelection returns "artboard" only for one object with no anchor points selected
2026-11-24 16:01:58 +07:00
BFlat 8b4a57f4e3 Merge pull request #8818 from dotCooCoo/fix/selection-widget-double-click-transform
Live Corners: a Selection tool double-click on a corner widget shows the Transform panel
2026-11-24 16:01:41 +07:00
BFlat 066aaed62f Merge pull request #8814 from dotCooCoo/fix/retype-drawn-shape-font-state
Retype: no retyped line starts with a combining mark
2026-11-24 16:01:24 +07:00
BFlat 2ef89d479e Merge pull request #8798 from dotCooCoo/fix/live-paint-bucket-journal-replay
Live Paint: bucket paint commands replay from the journal with any tool
2026-11-24 16:01:02 +07:00
BFlat 951aa208ae Look like production: filled push buttons, inline number fields (#9213)
Push buttons and number fields look like production's VectorCraft, through craft-libs options set once at the app's root.

- Push buttons that ask for no look are filled tiles with no edge at rest (`PushButtonLook::Filled`); hover adds the control edge and pressing tints them, as production's were. The Contextual Task Bar's actions ask for the outline, as production drew them.
- Number fields show their value and unit as one run at the field's start, in the interface face ("720 pt", "0°", "100%"; `NumberLook::Inline`), with production's precision (whole percentages, lengths to a thousandth of a point).

Tests: five field tests read production's text again. Select All covers "37 pt", Copy copies "37 pt", and Opacity reads "60%", "50%" and "100%", which is what production's own tests asserted. The port had moved them to its centred look ("37", "60 %").

Checks: `vectorcraft-ui-egui` lib tests 3775 passed, 0 failed (the last two test fixes were re-run in their modules). Clippy (`vectorcraft-ui-egui`, `vectorcraft`, all targets, `-D warnings`) and `cargo fmt --check` are clean.
2026-11-24 14:56:39 +07:00
BFlat c9b32651dc craft-libs next: framework fixes and the app's follow-ups (#9211)
VectorCraft moves to craft-libs `next` at 3238a3eca (from bf62d509f), and follows the framework's changes so production's behaviour holds.

Framework fixes this brings in (all on `next`):
- Save for Web's hosted answers, Tab out of selectable label text, Escape in text fields, a focused stop in a closing layer losing the focus, grid labels beside a menu.
- A toolbar button's command runs as a command (clicking the active Blend tool finishes the blend again).
- A Page key bound to a command runs it ahead of the canvas page scroll.
- A command no longer closes and reopens a dock panel's flyout, so Cmd+A in the Artboards flyout selects every artboard.
- Presses in Export for Screens land on the control under them again (a tile grid measured too narrow clipped the pane).
- VectorCraft Modern's selected, pressed and disabled colours take production's values.

App changes that follow the framework:
- Properties dialogs pass their key to `PropertiesDialog::new`; hosted parameter dialogs take footer presses through `take_action`; the Print dialog reads and sets the Settings destination; job queues keep the default order; Preferences custom rows report changes; Home's Learn section uses `StartScreen::app_section`; `ui.screenshot` replies with `ScreenshotParams`; the Appearance list copies on Alt drag through `ReorderRule::copy_with`; the Character panel gives the font picker its settings; Zoom with Mouse Wheel picks the canvas `WheelScheme`; Recovery reads the `RecoveryChoice` answer.
- The document canvas takes arrows with every modifier (Alt+arrow copies, Shift+arrow nudges ten), and an arrow bound to an app command runs it.
- The toolbar drawer takes a tool dragged off its slot (`RemoveFrom`, `MoveFrom`).
- Number fields show percentages whole ("60 %") and lengths to a thousandth of a point, as production did (`NumberPrecision::Measured`).

Tests rewritten (assertions unchanged): the three file-drop tests run the pass the drop asks for; the Appearance Characters test clicks the link by role.

Checks: `vectorcraft-ui-egui` lib tests 3775 passed, 0 failed. Clippy (`vectorcraft-ui-egui`, `vectorcraft`, all targets, `-D warnings`) and `cargo fmt --check` are clean.
2026-11-24 14:31:19 +07:00
BFlat 66ed2eec39 Look like production: section headings, compact tool rail, missing icons (#9210)
More of the port's look matches production's VectorCraft, in the parts the app owns.

- Section headings (dialogs, Align, Pathfinder, Separations, …) are regular label text, as production drew them, through one helper instead of per site.
- The Tools rail takes the chrome's Compact density, production's 36×29 cells, so the whole tool column fits again.
- Icons for the names no set had: Fold Preview, the Links panel's status marks, the swatch kinds and Cycle Display Sizes.
- The app catalog leaves Undo, Redo, Cut, Copy, Paste and the panels toggles to the framework's command sets, keeping Cut, Copy and Paste's extra F2/F3/F4 keys outside macOS. This removes the start-up warnings about duplicate definitions.
- Properties: Document Setup and Preferences buttons read without the menu's ellipsis.
- The Control bar and Properties draw the align buttons with the Lucide align glyphs, as production did.

Checks: `vectorcraft-ui-egui` lib tests 3772 passed, 3 failed. The 3 also fail on `main` and are fixed by the coming craft-libs update. Clippy (`vectorcraft-ui-egui`, all targets, `-D warnings`) and `cargo fmt --check` are clean.
2026-11-24 14:10:00 +07:00
BFlat 31508bf372 Look like production: icons, screenshots, title bar, Properties, task bar (#9209)
The port's window looks closer to production's VectorCraft (0.18 and its source), and the app's live screenshots work again.

Icons
- The app's icon and cursor sets are registered when the app is made (`VectorcraftApp::new`), so the web build, the tests and offscreen renders draw them, as the desktop app does.
- Each tool command carries its tool's icon, so the tool rail and its flyouts draw the tools instead of the "more" glyph.
- The hint bar's help icon is drawn (`dc-help`, a question mark in a circle, which no set had).

Screenshots
- `ui.screenshot` captures are issued from the app's kept UI passes, and the app repaints until they are issued; before, every capture timed out after 8 s. New test `tests::automation::a_screenshot_is_issued_by_the_apps_frames_and_written`.

Title bar and tabs
- Home is a bare icon toggle without the options-bar rule; the window title shows only beside the macOS menu bar.
- The Discord button is a soft neutral button with a border.
- Document tabs drop their own `*`, since the strip's modified mark shows it.

Properties panel
- Section headings in label text; form labels with colons beside fields that keep their own width; the Character section keeps its panel layout.
- Rotate and Shear show their icon and keep their own width; the Constrain Pie Angle link sits beside the pie angle fields.

Buttons and the Contextual Task Bar
- Push buttons have production's 4-point corners (the app's sizes set `radius.button`), so they are as narrow as production's.
- The task bar's actions are outlined push buttons.

Artboards panel
- Select All's keys select every artboard only while the list is drawn with the keys.

Checks: `vectorcraft-ui-egui` lib tests 3772 passed, 3 failed. The 3 failures also fail on `main` and need a newer craft-libs (Save for Web palette, two Select All tests). Clippy (`vectorcraft-ui-egui`, `vectorcraft`, all targets, `-D warnings`) and `cargo fmt --check` are clean.
2026-11-24 11:43:22 +07:00
BFlat 3935fcb28c Tests: the native Appearance window's Delete test presses the Fill row's empty space just right of its label, found from the label's rect, instead of a fixed offset that the row's swatch now covers (#9205) 2026-11-24 09:03:43 +07:00
BFlat bcb3de29b9 Tests: the wheel-drag test finds the handles from the rows and the wheel's size, as production's test did, since mid-drag the markers' names lag one move behind (#9204) 2026-11-24 08:51:29 +07:00
BFlat d2871a04eb Tests: space_moves_a_text_edit_zoom_marquee_after_cmd_is_let_go presses on the canvas just under the Contextual Task Bar, read from the frame's accessibility tree and read again after the zoom moves it: a press on the bar drags the bar (#9203) 2026-11-24 08:42:06 +07:00
BFlat 6f37bd839c VectorCraft on the craft UI framework (#8800)
VectorCraft's UI moves onto the shared craft UI framework in storytold/craft-libs (`next`; the framework side is storytold/craft-libs#2809), as PhotoCraft's did. The app keeps its engine, document model, file formats, commands and automation; its windows, panels, bars, dialogs and canvas are now built and driven by the framework: shell, docking and panels, hosted dialogs, keyboard, focus, IME and pointer routing, and theme tokens.

About 264,000 lines of VectorCraft's own egui UI code are removed and about 154,000 added. craft-libs is pinned at bf62d509f (in `next`), the egui fork at f5025284.

Tests that drove the old UI were rewritten against the port where only their premise changed, with their assertions kept. The UI tests still failing at merge, and their follow-ups, are listed in the pull request.
2026-11-24 08:25:24 +07:00
mohamedwithaiandClaude Opus 5.5 ce5af98dd5 Fix #6929: NHM Writer's legacy Tamil keymaps (symbol fonts) type their characters on Windows (#6930)
* Type: NHM Writer's legacy Tamil keymaps (symbol fonts) type their characters on Windows

NHM Writer's legacy Tamil keymaps (e.g. "Tamil Phonetic StmzhRgb" for
SR-Tamil fonts) post each byte as a WM_CHAR of U+F000 + byte, Windows'
symbol-font convention. egui-winit's is_printable_char rejects the
Private Use Area, so the Type tool got nothing (only the tool's
Backspace presses arrived).

windows_symbol_chars notes U+F020..=U+F0FF characters in winit's message
hook, in order with Backspace presses, and hands them to the frame as
Event::Text, unchanged (symbol fonts map exactly these code points),
each before the Backspace press that followed it. Unchanged matters:
as Latin-1, byte 0xAD (SR-Tamil's ஷ) would become U+00AD, a soft hyphen
the text engine never draws.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SY4wMcmnVnfGn5yC3dDic2

* Contributors: add my display name (HASAN CGI)

* Type: symbol-font characters keep their order among all typed text and keys; no new unsafe

Review of #6930: windows_symbol_chars now notes every character and key
press the window gets, not only Backspace, and places each symbol-font
character before the text or key press that followed it (a symbol then
an ordinary character, or a symbol then a navigation key, no longer
swap). It no longer has a message hook of its own: windows_alt_codes's
existing msg_hook, which already reads each MSG, hands it the message,
so the module has no unsafe code. Tests cover symbol/ordinary-text and
symbol/navigation sequences.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SY4wMcmnVnfGn5yC3dDic2

* Revert "Contributors: add my display name (HASAN CGI)"

This reverts commit 78ff9cbb2a.

* Type: rustfmt order for mod windows_symbol_chars

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 17:22:04 -06:00
Dylan M. Taylor 3465b06c38 revert: restore scheduled release.yml dry-run on main (#9184) 2026-11-23 14:45:47 -05:00
BFlat 5688239cb5 Merge pull request #9179 from dotCooCoo/fix/scriptcheck-unread-code-folder 2026-11-24 01:42:50 +07:00
Dylan M. Taylor 93bc8da6d7 ci(release): publish scheduled nightly prereleases (#9181) 2026-11-23 13:17:42 -05:00
dotCooCoo a149f93392 Script checker: code the check can't read keeps a Folder's length, hidden and readonly setters
The check leaves out `length`, `hidden` and `readonly` set on `new
Folder(...)`, a `Folder` place, or a variable holding one, but a script
can give that name a File object in ways the check does not read. Such a
setter now counts as a file write in a check whose files:

- use `with`, or name `eval`, `Function`, `evalFile` or `constructor`,
  as a word or as a string literal in brackets (`this['eval'](s)`,
  `$['evalFile'](f)`, `(function () {}).constructor(s)`)
- read, call or assign a property in brackets when the brackets hold
  anything but one string or number literal (`this[k](s)`,
  `this['ev' + 'al'](s)`, `this[('eval')](s)`, `this[0, 'eval'](s)`,
  `$[k](f)`, `g[k] = ...`), including a preprocessor line inside the
  brackets
- assign a property in brackets whose name is a string literal longer
  than 256 characters, or properties of more than 1,000 names
- assign or declare `Folder`

A variable whose name a member assignment writes (`$.global.d = ...`,
`this.d = ...`, `this['d'] = ...`) counts as one that may hold a File
object. Array literals, `o['plain']` and `a[0]` leave the Folder alone.

docs/mcp.md and the progress line in docs/target-app-parity.md state the
rule.
2026-11-23 09:54:50 -08:00
Dylan M. Taylor 71965b6a42 ci(release): forward ARTCRAFT_SERVICES_DISPATCH_TOKEN secret (#9172) 2026-11-23 09:34:26 -05:00
dotCooCoo 26d2a08fe3 Merge main into fix/script-export-linked-files 2026-11-22 23:41:56 -08:00
FredApps cd13884448 Merge pull request #9144 from FredApps/imo778-metafile-unit-facts
metafile: take WMF and EMF unit facts from craft-metafile (craft-libs#778)
2026-11-23 13:33:44 +07:00
FredApps a238c434ac Merge branch 'main' into imo778-metafile-unit-facts
Bring in the 205042e Rule-10 pin (#9160) and the #9157 Sonar note so
this branch contains current main.

# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	apps/vectorcraft-web/Cargo.toml
#	crates/text/Cargo.toml
#	xtask/src/pdf_deps.rs
2026-11-23 13:03:29 +07:00
FredApps 0b25f2ab6f Merge pull request #9160 from FredApps/imo778-craft-libs-pin-205042e
deps: pin all craft-libs crates to 205042e (craft-libs#778)
2026-11-23 13:02:13 +07:00
FredApps 4811e6d414 Merge branch 'main' into imo778-craft-libs-pin-205042e
Bring in #9157 (SonarCloud archive job-cap note) so this Rule-10 pin
contains current main before landing.
2026-11-23 11:45:17 +07:00
FredApps 3e3d1d1386 Merge pull request #9157 from storytold/ci/sonar-archive-build-jobs-note
ci: note the shared SonarCloud archive job cap
2026-11-23 10:58:37 +07:00
FredApps c9c2d711d1 xtask: keep pdf-deps aligned with the 205042e craft-libs pin (craft-libs#778)
Shard 5 (Checks) failed because cargo xtask pdf-deps still expected
craft-pdf and the hayro/krilla backends at d7c9632, and hayro-jbig2 at
the leftover stream-codec pin. All of those crates now resolve at the
shared 205042e revision.
2026-11-23 04:26:33 +01:00
FredApps a3b0b3dec0 deps: pin all craft-libs crates to 205042e (craft-libs#778)
Rule 10: every storytold/craft-libs crate is at the same rev, now
205042e406b630cda653990649264a78fea6296b, the merge of #3136 on
craft-libs main. That rev still skips a form already on the drawing
stack (ISO 32000-2 §8.10.1) but no longer reports it as
ContentTruncated, so a 200-shape knockout-mask PDF imports completely.

Also moves the leftover per-crate pins of craft-font-catalog and
craft-web-api onto the same rev.
2026-11-23 03:59:59 +01:00
FredApps 5022ba5593 ci: note the shared SonarCloud archive job cap
The reusable workflow now defaults build-jobs to 2 so a cold instrumented
archive stays within hosted-runner memory (craft-common-actions#333).
2026-11-23 03:21:18 +01:00
FredApps 53f5e552f8 Merge remote-tracking branch 'origin/main' into imo778-metafile-unit-facts
# Conflicts:
#	Cargo.lock
#	Cargo.toml
2026-11-23 08:38:58 +07:00
FredApps 15001f7dfc Merge pull request #9123 from ruchirguitar/refactor/metafile-pict-shared
metafile: delegate QuickDraw PICT parsing to craft-metafile
2026-11-23 08:24:58 +07:00
FredApps f4cac4f30f Merge remote-tracking branch 'origin/main' into imo778-metafile-unit-facts 2026-11-23 08:01:38 +07:00
FredApps 110094fe7e Merge branch 'main' into refactor/metafile-pict-shared
Pin craft-metafile to craft-libs main 8f6ad14b, which includes the
merged PICT reader (storytold/craft-libs#3073), drop the craft-codepage
dependency the removed reader used, and update the PICT detection
comments for version 1 pictures.

Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-23 07:20:25 +07:00
5af36bae87 Fix #4568: PDF import keeps embedded fonts for text whose family isn't installed (#4569)
* PDF import: keep embedded fonts for text whose family isn't installed

Glyphs drawn in an embedded font whose family isn't available are gathered
during import and built into one small TrueType font per family and style,
kept with the document (font/ttf blob). Text objects record the fonts and a
hash of their text: layout and rendering draw them in the kept font until the
text is edited (undo restores it) or the family is installed. Lines are
spaced against the file's own widths with per-glyph placement (#3756).

* PDF import: satisfy crate layering constraints without format dev-dep

* FileFont: negate us_win_descent in i32 to prevent overflow on extreme negative descenders

* PDF import: a kept font carries the file font's licence flags, and the docs say what that means

Review of #4569: the fsType of the file's font is copied to the font built from its glyphs (a test pins it against Embedding), so exports honour it; the docs state the limits, that the file's font program is not parsed, and that a saved file carries third-party glyphs.

* PDF import: a glyph curve far outside any glyph is left out; docs say what the limits and the font program mean

CodeRabbit on #4569: coordinates beyond 1e6 font units are refused before the curve is subdivided. The docs say the 64-font limit is what draws one type object and that the file's font program is read only for its licence flags and metrics.

* PDF import: two programs of one font keep the stricter licence flags; the docs cite their sources

CodeRabbit on #4569: embedded programs of one family and style share one built font, which kept the first program's fsType; it now takes the stricter of the two, whichever came first. The docs entry cites the Acrobat Help pages and the OpenType fsType specification.

* fmt

* PDF import: embedded fonts are on by default, with an opt-out preference

Owner decision on #4568. Preferences > File Handling > Use fonts embedded in imported PDFs (pdfImportEmbeddedFonts, on by default) and the embeddedFonts param of document.open and file.place: off, a PDF's type in a font the machine lacks is set in the fallback font with the missing-font warning, as before. One test each for on and off, one for the preference reaching the options.

* fmt after merging main

* docs: restore the status lines damaged by merges (main's line plus this PR's note)

* PDF import: set embedded_fonts through a builder method (keeps read_opened under the complexity limit)

* PDF import: move the missing-font notes out of read_opened (complexity limit after the merge)

* #4569: isolate file-font resources and reclaim live faces (UNVERIFIED)

* Preserve carried-font ownership across placement and recovery

* Fix carried-font regression test dependencies and unwind probe

* Use explicit OS2 heights in owned-font reference regression

* Keep native font regression artwork inside document layers

* fix(engine): bind file fonts when reading document profiles

* test(engine): initialize file-font leases in new image fixtures

* test: complete file-font lease initialization in image fixtures

* docs: keep the #4568 entry in the file-format parity status line

* fix(pdf): keep a line with another glyph for the same character as outlines (review)

A font kept with the document has one glyph per character. A glyph of the file's font that
differs from the one already kept for its character (a stylistic alternate that maps to the same
Unicode scalar) marks its line, which is imported as outlines so each glyph draws as the file
does.

* docs: resolve the leftover status-line conflict

* Placed document blob: give the new ImageBlob literal its file_font

* Test: a PDF's two glyphs for one character survive a native save and reopen as the file draws them

* Test: move the native save and reopen half of the two-glyphs regression to the engine (layers: no format dev-dep in pdf)

* Fix embedded-font preference help and English fallback checks

* Format embedded-font preference help with the workspace edition

---------

Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: skylartaylor <hi@skylar.cc>
2026-11-22 18:18:18 -06:00
FredApps 2ce595e4da Merge remote-tracking branch 'origin/main' into imo778-metafile-unit-facts
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	xtask/src/pdf_deps.rs
2026-11-23 07:03:03 +07:00
FredApps cde70af446 metafile: take WMF and EMF unit facts from craft-metafile (craft-libs#778)
Use craft_metafile::unit_facts from craft-libs#3071 for the placeable
frame, metric map-mode scan and EMF calibration; the fallback scales
stay VectorCraft's policy.
2026-11-23 06:58:44 +07:00
FredApps 369b8bfc09 Merge pull request #9014 from Terra854/deps/craft-libs-runlength
deps: pin shared EPS prefix decoders
2026-11-23 06:56:33 +07:00
FredApps e563e271a0 build: pin craft-libs to main 33be356 (craft-libs#778)
Move every craft-libs crate to one rev merged on craft-libs main, so the
metafile unit facts from craft-libs#3071 are available.
2026-11-23 06:55:39 +07:00
FredApps 5065041fb1 Merge branch 'main' into deps/craft-libs-runlength
Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-23 05:54:55 +07:00
Dylan M. Taylor 409d821751 Use the shared EMF and WMF EOF diagnostic (#9125) 2026-11-22 17:21:09 -05:00
FredApps 62ccdea828 Merge branch 'main' into deps/craft-libs-runlength 2026-11-23 05:14:11 +07:00