Commit Graph
551 Commits
Author SHA1 Message Date
.CooCoo 745ad1c10d Merge pull request #10999 from dotCooCoo/fix/restore-document-font-hinting
Fonts: text is hinted again, with skrifa taken from the craft-libs pin
2026-12-05 14:52:07 -08:00
.CooCoo 977a0e7c2a Merge pull request #10996 from dotCooCoo/fix/vectorcraft-open-links
Links: the desktop app opens links through the shared link opener, and written files and Linux links still open
2026-12-05 14:51:59 -08:00
.CooCoo a7a26c0fc9 Merge pull request #10988 from dotCooCoo/chore/craft-libs-pin-5489
Dependencies: craft-libs pin to main with #5489, #5466 and #5024, and their workarounds removed
2026-12-05 14:51:52 -08:00
dotCooCoo f5918495b3 Links: the desktop app opens links through the shared link opener
The main window's UI runtime now gets a link opener (InstallSpec::open_links,
craft-libs #5083), which takes every http, https and mailto link the app asks
to open (Help menu, app bar Discord button, Home and About links, credits, the
updater, an object's URL) and starts the system handler once per request.
eframe's `links` feature, which opened them before, is removed.

The runtime's opener drops every other scheme, including the file: URLs of
View PDF after Saving and Show in Browser in Save for Web and SVG Options. The
app now hands those to a new desktop service, Services::open_file_url, which
opens them in the default web browser with the webbrowser crate, as eframe's
`links` feature did. Without the service (the web build) they go to egui as
before.

On Linux and the BSDs the link opener runs xdg-open with the URL as its only
argument. craft-libs' open_external runs `xdg-open -- <url>`, and xdg-open
(xdg-utils 1.1.3, Ubuntu 24.04) exits with "unexpected option '--'" without
opening anything. A URL that starts with "-" is refused. macOS and Windows use
open_external.
2026-12-05 14:12:47 -08:00
dotCooCoo 65193440bc Fonts: text is hinted again, with skrifa taken from the craft-libs pin
adopt_context turned egui's font hinting off in both themes of every
context it adopted (ui_fonts::hinting_off), because skrifa 0.44's
automatic hinter never finished a tall narrow Hebrew letter in a face
without hinting instructions and the font list stopped responding.

craft-libs#5222 merged the blue-zone exit into craft-libs vendor/skrifa,
and the craft-libs pin holds it. The skrifa entry in [patch.crates-io]
now takes skrifa 0.44 from the pinned craft-libs rev (f9e5cecc9c)
instead of the pull request's commit (37d0532f42); vendor/skrifa is the
same at both revs. hinting_off and its call are removed, so interface
text and the font list and picker samples are hinted as egui does by
default. Type on the canvas is drawn from its own outlines and does not
change.

a_face_without_hinting_instructions_draws_its_sample now checks that a
context the app adopts hints text in its global, light and dark styles,
and still draws U+05D1 from a face without instructions.
2026-12-05 13:55:46 -08:00
dotCooCoo ee1d35e8d6 Dependencies: craft-libs pin to main at f9e5cecc9c
Every craft-libs rev moves on to craft-libs main at f9e5cecc9c, which also
holds storytold/craft-libs#4039 and #5541. The egui, winit and acadrust
revs stay as craft-libs pins them.
2026-12-05 12:46:02 -08:00
dotCooCoo c1c33e9d3c Dependencies: craft-libs pin to main at d32100f6d2
Every craft-libs rev moves on to craft-libs main at d32100f6d2, which also
holds storytold/craft-libs#5222 and #5569. The skrifa patch stays at
37d0532f42, whose vendored skrifa is the same as main's. The egui, winit
and acadrust revs stay as craft-libs pins them.
2026-12-05 12:26:47 -08:00
dotCooCoo 3d50f40e96 Dependencies: craft-libs pin to main at a7fb3c3cd8
Every craft-libs rev moves on to craft-libs main at a7fb3c3cd8, which also
holds storytold/craft-libs#5548. The egui, winit and acadrust revs stay as
craft-libs pins them.
2026-12-05 11:51:27 -08:00
dotCooCoo cb5ec21878 Merge main into chore/craft-libs-pin-5489
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	apps/vectorcraft-web/Cargo.toml
#	xtask/src/pdf_deps.rs
2026-12-05 11:45:52 -08:00
dotCooCoo 86b5e07ac7 Dependencies: craft-libs pin to main at 643892adc7
Every craft-libs rev moves on to craft-libs main at 643892adc7, which also
holds storytold/craft-libs#3665, #3710, #4928, #5471 and #5554. The egui,
winit and acadrust revs stay as craft-libs pins them.

With craft-libs#4928 the Bezier overlay paints its anchors and handles as
one kept mesh. The test that compares the canvas anchor marks with the
overlay now tessellates the marks' run of shapes the same way before it
compares them, and leaves out placeholder shapes that paint nothing.
2026-12-05 11:37:42 -08:00
dotCooCoo 4c020bfb08 Merge main into fix/save-metadata-only-change 2026-12-05 11:00:16 -08:00
.CooCoo 4e1f2bfa54 Merge pull request #10915 from dotCooCoo/fix/swatches-browser-selection-set
Swatches: the panel checks a large selection in one read of the swatches
2026-12-05 10:14:53 -08:00
dotCooCoo 7d58dab740 Dependencies: craft-libs pin to main at 80a65f8437
Every craft-libs rev moves to craft-libs main at 80a65f8437. Its egui, winit and acadrust revs
are the ones VectorCraft already pins.
2026-12-05 09:25:50 -08:00
.CooCoo f5907381f5 Merge pull request #10336 from mocenigo/fix/resize-color-space
macOS: the window keeps its colours while it is resized
2026-12-05 09:16:01 -08:00
dotCooCoo 2743fa338d Merge main into chore/craft-libs-pin-5489
# Conflicts:
#	Cargo.toml
2026-12-05 09:08:16 -08:00
dotCooCoo d4e73489ef Dependencies: craft-libs pin to main, with the opacity and edit-target workarounds removed
Every craft-libs rev moves from 4f3e34d0dd, the head of craft-libs#5489, to craft-libs main.
The egui and winit revs are the ones that craft-libs rev pins, unchanged.

- Opacity fields (Control bar, Color Wheel, Gradient) show the stored fraction times 100 again.
  craft-libs#5466 makes the number field step on from a value such as 50.999999 %, so
  panels::shown_percent is removed.
- The Blend Options Ramp and Shift sliders, the Image Trace rows and the Divider field use
  SliderField::edit_target (craft-libs#5024) in place of the id-salt workarounds. A value typed
  for one object and not yet committed is still dropped when another is selected.
- CDR import: craft-libs now reads bitmaps as their own object kind. They are not placed; the
  warnings name them with the other objects not read, and a PowerClip frame that clips only a
  bitmap is named as a frame that opened empty.
2026-12-05 09:07:54 -08:00
dotCooCoo f894727fd6 Merge main into fix/save-metadata-only-change 2026-12-05 09:07:20 -08:00
dotCooCoo 0848cfc2bb Merge main into fix/swatches-browser-selection-set 2026-12-05 08:06:38 -08:00
.CooCoo 23e6ea61c3 Merge pull request #10946 from dotCooCoo/fix/dwg-import-version-tests
DWG import: R12, R13, R14 and 2018 files are tested, and R12 reports its own version
2026-12-05 07:57:19 -08:00
dotCooCoo 3c5fe686fe Merge main into fix/swatches-browser-selection-set 2026-12-05 07:46:05 -08:00
.CooCoo 3fae0caf5d Merge pull request #10891 from dotCooCoo/fix/swatches-name-index
Swatches: the panel looks swatch names up in an index instead of scanning the list
2026-12-05 06:31:52 -08:00
dotCooCoo 13ee6a6c36 Merge main into fix/dwg-import-version-tests 2026-12-05 05:51:07 -08:00
dotCooCoo d9c4c6b9ee DWG import: R12, R13, R14 and 2018 files are tested, and R12 reports its own version
The DWG import tests read only a 2004 file. They now also read an R12,
R13, R14 and 2018 DWG file made from the same drawing, and check that
each one imports as the DXF it was made from, with the same layer and
the same art.

craft-dwg's writer writes 2000 and later, so the 2018 file comes from
craft-dwg and the R12, R13 and R14 files come from acadrust, the DWG
reader and writer craft-dwg uses. acadrust is a dev-dependency of
vectorcraft-cad at the rev craft-libs pins.

The tests found that DXF Import Options showed an R12 DWG drawing as
R13: `info` reported the version of the DXF the DWG converts to, and
an R12 DWG converts to an R13 DXF. `info` now reports a DWG file's own
version.
2026-12-05 04:52:52 -08:00
dotCooCoo cda16b5163 Fix #10734: Save asks about a changed file only when its bytes changed
Save asked "File changed" on every save of a file in a cloud-sync
folder. The save flow counts any new change time or inode as a change
by another app, and a sync client sets attributes on the file after
uploading it, or puts the same bytes back as a new file.

The app now keeps a SHA-256 digest of each document's file as it last
read or wrote it, taken on a thread after the open and after each
save. When the flow would ask, the file is compared with that digest
on a thread; a file that still holds the same bytes becomes the
recorded version and is written over without asking. A file whose
bytes differ, that changes during the comparison, or that has no
digest is asked about as before. Digests of closed documents are
dropped.
2026-12-05 04:14:07 -08:00
dotCooCoo 3ecd070872 Part of #10798: the font list's style rows preview their style on the text
Hovering a style row of an expanded family in the font list previewed
only the family on the selected type. apply_preview now takes the style
the picker reports with its preview (FontPickerOutput::preview_style and
CharacterControlsOutput::preview_style) and passes it to the font
command, so the type shows the hovered style; a family row still
previews the family in the closest style it has.

Every craft-libs rev moves to storytold/craft-libs#5489's head
(4f3e34d0dd), which adds preview_style, gives style rows a sample in
their own face, and keeps a typed query when a family's disclosure, its
star or a filter is clicked. Cargo.lock changes only the craft-libs
source lines.
2026-12-05 02:29:35 -08:00
dotCooCoo 181a471e6c Swatches: the panel checks a large selection in one read of the swatches
The Swatches panel's body in craft-libs drops selected keys that no
longer name a swatch or a group on every repaint while the panel is
hovered, and checked each key with a scan of every swatch name. With
2,000 swatches in 20 groups and every swatch and group selected, one
run compared about two million names.

Every craft-libs rev moves from 4c330f6bd1 to dbc6b20e78, which reads
the swatch names once per run and stops when it has found every
selected name. Delete events and the footer's Delete answer the first
lookup of a swatch or a group name with a scan and later lookups of
that kind from a map of the names. Cargo.lock changes only the
craft-libs source lines.
2026-12-04 21:22:30 -08:00
dotCooCoo 9386245a06 Merge main into fix/swatches-name-index 2026-12-04 20:37:39 -08:00
dotCooCoo f74855acee Swatches: vectorcraft-doc turns swatch-scans on for its own tests
The gate's shard check failed on every shard: vectorcraft-doc's tests run
in the Rest shard, where no crate turned the swatch-scans feature on, so
they built with other features than under `cargo test --workspace`, where
vectorcraft-ui-egui's dev-dependency turns it on.

vectorcraft-doc now lists itself as a dev-dependency with swatch-scans on,
as vectorcraft-pdf and vectorcraft-eps do for their counters, so its tests
build with the same features in their shard and with the whole workspace.
2026-12-04 18:07:50 -08:00
dotCooCoo 5c527ab7ec Merge main into fix/craft-libs-pin-language-packs
Moves every craft-libs crate to craft-libs main 4c330f6, which contains
both 69c746e9 and main's c2a47df pin. The egui (399fc6e) and winit
(3fd7ae6) revs stay as that craft-libs rev uses them, and skrifa stays at
craft-libs 37d0532f until craft-libs#5222 merges.
2026-12-04 18:01:30 -08:00
.CooCoo ecd771c54c Merge pull request #10644 from dotCooCoo/fix/popout-stable-measure
Panels: the Color and Gradient pop-outs run one pass a frame
2026-12-04 17:03:21 -08:00
dotCooCoo b852eef288 Merge main into fix/craft-libs-pin-language-packs
Every craft-libs crate stays on craft-libs main at 69c746e9, with egui
399fc6e and winit 3fd7ae6. The skrifa patch from main stays at craft-libs
37d0532 until craft-libs#5222 merges.
2026-12-04 16:20:40 -08:00
dotCooCoo 19eb6cd88c Merge main into fix/popout-stable-measure 2026-12-04 15:00:25 -08:00
dotCooCoo 11a5801b63 Merge main into fix/compress-i18n-catalogs 2026-12-04 14:56:42 -08:00
dotCooCoo 26f5b4ae58 i18n: embed the interface language catalogs Brotli-compressed
The 29 catalogs in crates/ui-egui/src/i18n were embedded with include_str!,
21,861,200 bytes of text in every build. build.rs now compresses each
*.tsv with Brotli (quality 9, 4 MiB window) into OUT_DIR, and the
interface unpacks them when it first needs its catalogs and hands them to
I18n::from_owned. The embedded catalogs take 5,316,158 bytes.

- build.rs finds the catalogs in the folder, so adding a language is
  adding its .tsv. A catalog over 8 MiB, or one it can't read, stops the
  build.
- A catalog that does not unpack to exactly its recorded length of UTF-8
  is left out and logged, and its language is not offered.
- On the desktop the catalogs are unpacked on several threads.
2026-12-04 14:34:45 -08:00
dotCooCoo 1bbc32ff82 Dependencies: move the craft-libs pin to craft-libs main (69c746e9)
Every craft-libs dependency moves from 33966c68 to craft-libs main at
69c746e9, which adds the equal-spacing smart guides of a move
(ToolContext::add_measures and ToolHostResponse::measures). The egui and
winit forks stay at the revisions craft-libs pins (399fc6e0, 3fd7ae64).
Cargo.lock changes only the sources of the craft-libs packages.
2026-12-04 12:52:13 -08:00
dotCooCoo 829f85298e Merge main into fix/popout-stable-measure 2026-12-04 10:14:11 -08:00
dotCooCoo 4f9f0924b2 Merge main into fix/craft-libs-pin-language-packs 2026-12-04 10:13:46 -08:00
dotCooCoo 9c08ad9395 Merge main into fix/font-hinting-blue-zone-hang 2026-12-04 10:09:33 -08:00
dotCooCoo 6b0ca1faea Dependencies: move the craft-libs pin to craft-libs main (33966c68)
Every craft-libs dependency moves from 0582d506, the head of
storytold/craft-libs#5281, to craft-libs main at 33966c68. The egui and
winit forks stay at the revisions craft-libs pins (399fc6e0, 3fd7ae64).

- Art dragged off the canvas: craft-libs main still ends the drag session
  when the tool host cancels a press whose canvas was hidden for a pass, so
  art dragged over another document's tab and back to its own canvas was
  not moved. The canvas now starts that session again while the button is
  held. storytold/craft-libs#5281 keeps the session running; the canvas
  code goes with the pin bump that takes it.
- Floating panels: with storytold/craft-libs#4739 in the pin,
  WindowHost::viewports_at skips minimized and hidden windows, so
  os_window_at drops its own minimized check. It keeps the check for an
  open dialog: the palette windows hide a few passes after the dialog
  opens.
- Tests: the hidden-palette test waits the pass in which the palettes show
  again after the dialog closes. The Gradient panel's swatch-drop tests
  show the Gradient panel over the Swatches panel, which fills the room
  under it.
2026-12-04 10:04:00 -08:00
.CooCoo 2675e1291f Merge pull request #10802 from dotCooCoo/fix/open-dwg-files
File formats: DWG drawings open and place through the DXF reader
2026-12-04 09:38:29 -08:00
.CooCoo edcb80db38 Merge pull request #10429 from dotCooCoo/feat/3d-rendered-tier
3D: Render Settings › Rendered draws the solid as a lit image with shadows from every light
2026-12-04 09:24:53 -08:00
.CooCoo afd0c9ab22 Merge pull request #10814 from dotCooCoo/fix/frame-buffer-no-copy
Render: a full-frame render hands its pixels over without a fill and a copy
2026-12-04 09:24:32 -08:00
dotCooCoo bf5e7ea76d Merge main into fix/craft-libs-pin-language-packs 2026-12-04 07:37:48 -08:00
dotCooCoo cc7c7675a7 File formats: a failed DWG conversion is tried again after 10 seconds
A failed conversion was returned for the same bytes until another
drawing replaced it, so a worker stopped by its deadline, by a lack of
memory or by a failed start kept failing after the cause was gone. The
failure is now kept for 10 seconds from when the conversion returned,
which still covers the reads of one Open, and the next read converts
the drawing again. A conversion that worked is kept as before.
2026-12-04 07:23:53 -08:00
dotCooCoo 2e030ec46d Merge main into fix/open-dwg-files 2026-12-04 06:36:17 -08:00
dotCooCoo dbffe7a76c Dependencies: move the craft-libs pin to 0582d506
Move every craft-libs dependency from 77ade517 to 0582d506, which is
craft-libs main at 13198740 (with storytold/craft-libs#5272) plus
storytold/craft-libs#5281. Take the egui fork at 399fc6e0 and the winit
fork at 3fd7ae64, the revisions craft-libs pins. The winit fork no
longer pulls in wayland-protocols-plasma.

Adjust VectorCraft to the new framework behavior:

- The Unsaved Changes question opens on the dialog host as a
  HostedUnsavedChangesDialog.
- The drag session now resolves a release against the targets of the
  release pass and delivers the drop in the next pass. The canvas no
  longer drops art released over a pane itself in that pass, which
  copied the art twice.
- Files the person drops in a pass that carries injected input stay
  confined to the automation roots in the pass that delivers them.
- Dragging art over another document's tab and back to its own canvas
  moves it again: craft-libs#5281 keeps the drag session running when
  the source canvas shows again.
2026-12-04 01:57:51 -08:00
dotCooCoo 0a01b65903 Merge main into fix/popout-stable-measure 2026-12-04 01:53:17 -08:00
dotCooCoo afc4de9b07 Render: a full-frame render hands its pixels over without a fill and a copy
Renderer::render, render_node, render_pattern_swatch and the image of
Effect > Rasterize copied the rendered pixmap into a new Vec<u8>. They
now take the pixmap's buffer and cast it to bytes in place
(group::into_bytes); a buffer the cast cannot take is still copied.
The target pixmap with nothing under it is allocated zeroed
(group::blank_pixmap) instead of being filled pixel by pixel. At
2880x1800 that removes one 20.7 MB fill and one 20.7 MB copy from every
whole-frame render. The pixels are the same bytes.

Part of #1172
2026-12-04 01:41:07 -08:00
dotCooCoo 094f60b2fb Tests: DWG opens through the DXF Import Options dialog and the CLI worker
- The DXF Import Options dialog test opens a DWG, confirms it at 1:1
  in model space and places it.
- `vectorcraft-cli info` reads a DWG as the DXF it was written from,
  and five damaged copies (cut short, overwritten, bytes flipped) end
  in an error that names DWG or open with warnings, with the process
  exiting normally.
- The engine's DWG and DXF test modules are listed in order.
2026-12-03 20:36:08 -08:00
David Mann 7c96961420 Merge remote-tracking branch 'upstream/main' into feat/agents-open-window
# Conflicts:
#	apps/vectorcraft-cli/src/main.rs
2026-12-04 00:12:25 +01:00