Commit Graph
19279 Commits
Author SHA1 Message Date
dotCooCoo 3e4e4e255f Merge main into feat/retype-near-matches 2026-11-20 06:02:09 -08:00
aa78136bbf test: name the menu-access fixture fonts in 13 bytes (#8833)
#8813 tops up the font list with fonts renamed `Menu Test Font NN` on runners
with 20 or fewer families, but vectorcraft_testkit::fonts::renamed only takes
a 13-byte family (the length of "Source Sans 3"). Every run that reaches the
loop panics, as the coverage shard on main does. `Menu Test FNN` is 13 bytes.

Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: BFlat <bombayapirat@gmail.com>
2026-11-20 20:54:22 +07:00
dotCooCoo c5959c36ae Retype: glyphs that fit several fonts equally often take the font they fit closest in all
Each shape votes for every face it fits, and each glyph is set in the face
with the most votes. When faces tied, each glyph took its own closest face,
so one line could be set in several fonts. With Noto Sans CJK SC loaded,
simplified Source Sans 3 outlines of "Tim" fit both faces (and Noto Sans
Hebrew) three times each: T and m took Source Sans 3 and i took Noto Sans
CJK SC, so T and m were left as lone outlines.

A tie now goes to the face with the least leftover distance summed over the
shapes that fit it, so every glyph that fits that face takes it.
2026-11-20 05:43:25 -08:00
BFlat 542fe0a516 Merge pull request #8831 from dotCooCoo/fix/ci-shard-test-build 2026-11-20 20:31:04 +07:00
dotCooCoo 7f6c5349e0 Merge main into fix/ci-shard-test-build 2026-11-20 05:07:23 -08:00
291ea9fd00 ci: build the gate's test binaries without debug info (#8829)
Every gate since 20 Nov 00:38 UTC except one has been stopped mid-link
with "The runner has received a shutdown signal" (exit 143), on main and
on pull requests. Turn on the shared gate's dev-strip input, as photocraft
does, so the ~100 test binaries link without line tables or symbols.

Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 19:41:48 +07:00
dotCooCoo 4e5345968b Retype: ranking near-match candidates counts against the comparison budget
Near matching ranked every glyph of the shape's contour count and proportion
before comparing the 256 closest, and that ranking was not counted against the
point comparisons each shape and command may make, so a large selection over
many fonts could spend unbounded time there. Each glyph ranked now takes one
comparison per contour and one more from the same budget, the ranking keeps
the closest glyphs without sorting the rest, and the shares of contour length
are read without allocating per glyph.
2026-11-20 01:59:28 -08:00
dotCooCoo 49be5fb875 CI: the gate builds and runs the tests in five shards
The gate's one job builds all 106 test binaries on a 4-CPU, 16 GB runner,
and it is often stopped with exit code 143 ("The runner has received a
shutdown signal") during that build. ci.yml now runs the gate as five
legs:

- Shards 1 to 4 run `cargo xtask ci shard`, which builds and runs the
  tests and doctests of its own crates: ui-egui, engine, the apps with
  mcp and xtask, and every other crate.
- Shard 5 runs the other `cargo xtask ci` steps.
- On pushes to main, a `cache warm` leg runs `cargo xtask ci warm`,
  which builds what every shard builds and saves the dependency cache.

`gate (ubuntu-24.04)` passes only when all five legs passed.
`cargo xtask ci` with no argument runs every step, as before.

`cargo xtask shards` lists each shard's crates. It fails when a crate
named in xtask/src/shards.rs is not a workspace member or is named
twice, and when a crate builds with other features in its shard than in
`cargo test --workspace`. Every shard runs it first. vectorcraft-affinity
and vectorcraft-pdf now turn on `synth` and `read-count` in their own
dev-dependencies, which vectorcraft-engine's dev-dependencies turned on
before. Without that, 39 tests of affinity's `it` binary do not build in
a shard without the engine.

The gate also sets dev-debug "0" and dev-strip: true, so the workspace
crates build without line tables and the test binaries without debug
info or symbols.
2026-11-20 01:56:01 -08:00
dotCooCoo f9548440bd Retype: a translucent compound path whose glyphs overlap stays an outline
The glyphs of a split compound path can become separate type objects, for
example on two lines. A compound filled by the nonzero rule whose glyphs
overlap passed the paint check, and with an opacity below 100% the two objects
then painted the overlap twice. A split whose parts overlap now keeps the shape
an outline when the shape has an opacity below 100%, a blend mode other than
Normal, a gradient or pattern fill or a stroke.
2026-11-20 01:40:36 -08:00
dotCooCoo d1859cf03f Retype: a compound path of more than 65,536 path elements is not split into glyphs
Splitting a compound path copies its contours and compares each with the
others. A selected compound of a few contours with a very large number of path
elements was split however many elements it had. Such a shape is now matched
whole only, like one of more than 256 groups or 512 contours.
2026-11-20 00:44:37 -08:00
dotCooCoo b237da4672 Retype: a near glyph whose size and turn would draw it past the tolerance ends the line
A near-matched glyph joins a line when its size and turn are each within the
tolerance of the line's, and the line's type then draws it at the line's size
and turn. Together with the glyph's own leftover distance, that change could
put the drawn glyph further from its shape than the tolerance: an m 4% larger
and turned 0.04 radians stayed on its line at tolerance 0.05.

The layout check now also measures, for each near-matched glyph (and each glyph
of a line whose first glyph is one), how far the change from its matched size
and turn moves the drawn outline relative to its spread, combined with its own
leftover distance, and splits the line before it when that passes the
tolerance, or when the glyph's center sits further away than its origin may.
2026-11-20 00:24:20 -08:00
Dylan M. Taylor f987648e96 eps: delegate scene-writer shading, image stream, and line style syntax to craft-ps (#8810)
* eps: delegate scene-writer shading, image stream, and line style syntax to craft-ps

* chore(eps): repin craft-ps to merged craft-libs main (cfcc86242)
2026-11-20 03:01:58 -05:00
Dylan M. Taylor 2848526796 fix: resolve two coverage test failures on main (#8813)
- eps: restore linear-time memchr::memmem::find in lex::find so
  search_in_a_loop_runs_out_of_the_budget does not hit O(N*M) under
  craft_ps::read::lex::find.
- ui-egui: wait for FontDb background scan and ensure >20 font families
  in menu_access_stationary_pointer_repeat_and_rerun_do_not_retarget_or_double_invoke
  so coverage/minimal runners do not race or fall short of 20 families.
2026-11-20 02:32:03 -05:00
dotCooCoo cf80c11871 Retype: a compound tries its other complete splits when the paint check rejects the first two
A compound path whose split with the longest runs and split with the shortest
runs both failed the paint check stayed an outline, even when another complete
split (AB and CD for groups A, B, C and D) passed it. The split search now
checks the other complete splits in order, at most 32 per shape for exact
matches and 32 for near matches, and looks each run of groups up at most once,
only when the search reaches it.
2026-11-19 23:05:44 -08:00
dotCooCoo 2fa3e32c83 Retype: stacked lines split from one compound path become one object
Lines that a compound path of several glyphs splits into share that
shape, so the check that one line's shape comes right after the last
line's never passed for them, and each line stayed an object of its own.
Two lines of one shape now follow each other, and the other joining
rules decide as for lines of separate shapes. The lines of the existing
paint-order test are moved farther apart so they still make two objects.
2026-11-19 21:57:11 -08:00
dotCooCoo 8483baf11f Retype: the type docs say which two-glyph lines take another line's tracking
A line of two glyphs that untracked type does not draw in place takes the
tracking of the nearest tracked line in the same font, size and turn, and
keeps it only when type at that tracking draws both glyphs in place. A line
of one or two glyphs that joins tracked lines in one object takes their
tracking. The Retype row in docs/type-parity.md said other lines are set
untracked.
2026-11-19 20:13:02 -08:00
Dylan M. Taylor 54f58fff31 eps: cut over PostScript scanner (lex.rs) to craft-ps (#8793)
* eps: cut over PostScript scanner (lex.rs) to craft-ps

* chore: repin craft-ps to craft-libs main
2026-11-19 21:05:18 -05:00
dotCooCoo fe7d225d6f Retype: a contour reaching outside a concave one is no counter of it, and a rejected split gives way to another
A contour counts as lying inside another only when up to eight of its anchor points do. When the paint check rejects the split with the longest runs, the split with the shortest runs is tried before the shape stays an outline.
2026-11-19 17:07:50 -08:00
dotCooCoo 8158107e82 Retype: a counter too narrow in any direction, or an outline too large to probe, keeps the shape an outline
The fill check rejects a counter whose convex hull is narrower than three times the outline tolerance in some direction, so a turned strip is caught as well as an upright one, and rejects a shape whose outline is too large to flatten. Exact parts of a split compound are checked at tolerance 0 even when near matches are allowed, so a split that only exact matching found is not accepted under the wider tolerance. The tracking sentence in docs/type-parity.md names its three-glyph condition.
2026-11-19 16:40:10 -08:00
BFlat 7a519eea68 Merge pull request #8787 from dotCooCoo/fix/retype-skip-prohibited-tracking
Retype: a tracking that translucent glyphs cannot take no longer drops the tracked prefix already found
2026-11-20 07:37:24 +07:00
BFlat e34c9198dd Merge pull request #8757 from Hassan1305/fix-8711-layers-target-ring
Layers: keep the targeted ring visible around the appearance dot (#8711)
2026-11-20 07:16:03 +07:00
BFlat b9227b0b7c Merge pull request #8756 from storytold/train/carry8336
Symbols: Add original Nature Icons library (#8336)
2026-11-20 07:10:55 +07:00
BFlat 6dd1363d75 Merge pull request #8784 from storytold/cutover/eps-shared-epsi
refactor(eps): delegate EPSI preview decoding to craft-eps
2026-11-20 07:10:30 +07:00
BFlat 5efe19e7c5 Merge pull request #8782 from storytold/train/carry8001
Fill Area: a click adds a path of the enclosed area and keeps the paths around it (#8001)
2026-11-20 07:00:48 +07:00
bflatastic b95ff44c06 Merge main into #8336
# Conflicts:
#	crates/ui-egui/src/i18n/bg.tsv
#	crates/ui-egui/src/i18n/bs.tsv
#	crates/ui-egui/src/i18n/ca.tsv
#	crates/ui-egui/src/i18n/cs.tsv
#	crates/ui-egui/src/i18n/da.tsv
#	crates/ui-egui/src/i18n/de.tsv
#	crates/ui-egui/src/i18n/el.tsv
#	crates/ui-egui/src/i18n/es.tsv
#	crates/ui-egui/src/i18n/fi.tsv
#	crates/ui-egui/src/i18n/fr.tsv
#	crates/ui-egui/src/i18n/gu.tsv
#	crates/ui-egui/src/i18n/hi.tsv
#	crates/ui-egui/src/i18n/hu.tsv
#	crates/ui-egui/src/i18n/id.tsv
#	crates/ui-egui/src/i18n/it.tsv
#	crates/ui-egui/src/i18n/ja.tsv
#	crates/ui-egui/src/i18n/ka.tsv
#	crates/ui-egui/src/i18n/ko.tsv
#	crates/ui-egui/src/i18n/nl.tsv
#	crates/ui-egui/src/i18n/pl.tsv
#	crates/ui-egui/src/i18n/pt-br.tsv
#	crates/ui-egui/src/i18n/ru.tsv
#	crates/ui-egui/src/i18n/sv.tsv
#	crates/ui-egui/src/i18n/tr.tsv
#	crates/ui-egui/src/i18n/uk.tsv
#	crates/ui-egui/src/i18n/vi.tsv
#	crates/ui-egui/src/i18n/zh-hans.tsv
#	crates/ui-egui/src/i18n/zh-hant.tsv
2026-11-20 06:59:22 +07:00
BFlat 9d0ae305d6 Merge pull request #8730 from storytold/train/carry8383
Brushes: Add original Ornamental library (#8383)
2026-11-20 06:22:11 +07:00
BFlat 78d135c38d Merge pull request #8786 from dotCooCoo/fix/dock-monitor-work-area
Panels: give floating panels and the restored window each monitor's work area
2026-11-20 06:15:40 +07:00
BFlat 10159277c3 Merge pull request #8731 from storytold/cutover/jpeg-icc-replace
doc: delegate JPEG ICC replacement to craft-image-codecs
2026-11-20 06:15:24 +07:00
BFlat 45f4050b2f Merge pull request #8790 from storytold/train/carry8741
3D and Materials: graphics map onto Inflate objects (#7767) (#8741)
2026-11-20 06:08:13 +07:00
bflatastic aa853ad275 Merge main into #8741
# Conflicts:
#	docs/effects-parity.md
#	docs/three-d.md
2026-11-20 06:07:45 +07:00
bflatastic 007ebaa36d Merge the earlier #8001 carry (superseded by this resolution) 2026-11-20 05:57:03 +07:00
HassanKhan c5a6971dfb Merge storytold/main (d38e414b77) into fix-8711-layers-target-ring
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-20 03:56:17 +05:00
bflatastic 0810ac5b87 Merge remote-tracking branch 'origin/main' into fix/8001
# Conflicts:
#	crates/mcp/src/ui_catalog.rs
#	crates/ui-egui/src/menus/ui_commands.rs
#	docs/roadmap.md
2026-11-20 05:47:07 +07:00
BFlat d38e414b77 Merge pull request #8765 from dotCooCoo/fix/live-paint-group-review-gaps
Live Paint: the Eyedropper, overprint, proxies and contents edits follow the whole-group rule
2026-11-20 05:46:01 +07:00
BFlat b366dad386 Merge pull request #8789 from storytold/train/carry8763
Quick Pen: on-canvas toolbar with its actions, Flip Arc and More menu (#8763)
2026-11-20 05:45:42 +07:00
bflatastic 864ef2f200 Merge main into #8763
# Conflicts:
#	docs/target-app-parity.md
2026-11-20 05:45:14 +07:00
BFlat 190375c76c Merge pull request #7760 from dotCooCoo/feat/graph-designs-from-other-document
Graphs: graph designs come in from another document
2026-11-20 05:44:33 +07:00
Dylan M. Taylor 7c81cd7df8 eps: document and test shared EPSI preview compatibility 2026-11-19 17:42:11 -05:00
BFlat 4df756cc9a Merge pull request #8719 from Hassan1305/feat-8363-trim-view-guides
View: Trim View hides the guides and the grid while it is on (#8363)
2026-11-20 05:38:32 +07:00
BFlat fe8bcec1e4 Merge pull request #8716 from storytold/train/carry7112
Image Trace: Edit › Tracing Presets… manages, imports and exports tracing presets (#7112)
2026-11-20 05:38:06 +07:00
BFlat 684b1bf48d Merge pull request #7641 from dotCooCoo/feat/color-wheel-document-colors
Color Wheel: Show Document Colors lists the colors the art uses
2026-11-20 05:32:27 +07:00
BFlat 9a63cf2d1d Merge pull request #8769 from dotCooCoo/fix/quick-pen-followups
Pen: Quick Pen drags end where let go and keep outside edits
2026-11-20 05:26:53 +07:00
BFlat d2cecc63df Merge pull request #8754 from storytold/train/carry8729
HP-GL Options: OK writes nothing after another document became active (#8729)
2026-11-20 05:25:21 +07:00
dotCooCoo 654cb008c8 Merge main into feat/retype-near-matches 2026-11-19 14:18:05 -08:00
BFlat f11c8da760 Merge pull request #8746 from storytold/train/carry8494
Shapes: Circle Tool Options set what the Circle tool shows and where its anchors go (#8494)
2026-11-20 05:15:55 +07:00
BFlat 924028964a Merge pull request #8210 from dotCooCoo/feat/palette-dimmed-rows
Command Palette: commands that cannot run now are dimmed
2026-11-20 05:10:21 +07:00
BFlat faed5639db Merge pull request #8777 from dotCooCoo/fix/info-status-colon
i18n: panel and status bar labels use the language's colon
2026-11-20 05:04:36 +07:00
bflatastic 03e704d0b3 Merge main into #8383
# Conflicts:
#	crates/ui-egui/src/i18n/bg.tsv
#	crates/ui-egui/src/i18n/bs.tsv
#	crates/ui-egui/src/i18n/ca.tsv
#	crates/ui-egui/src/i18n/cs.tsv
#	crates/ui-egui/src/i18n/da.tsv
#	crates/ui-egui/src/i18n/de.tsv
#	crates/ui-egui/src/i18n/el.tsv
#	crates/ui-egui/src/i18n/es.tsv
#	crates/ui-egui/src/i18n/fi.tsv
#	crates/ui-egui/src/i18n/fr.tsv
#	crates/ui-egui/src/i18n/gu.tsv
#	crates/ui-egui/src/i18n/hi.tsv
#	crates/ui-egui/src/i18n/hu.tsv
#	crates/ui-egui/src/i18n/id.tsv
#	crates/ui-egui/src/i18n/it.tsv
#	crates/ui-egui/src/i18n/ja.tsv
#	crates/ui-egui/src/i18n/ka.tsv
#	crates/ui-egui/src/i18n/ko.tsv
#	crates/ui-egui/src/i18n/nl.tsv
#	crates/ui-egui/src/i18n/pl.tsv
#	crates/ui-egui/src/i18n/pt-br.tsv
#	crates/ui-egui/src/i18n/ru.tsv
#	crates/ui-egui/src/i18n/sv.tsv
#	crates/ui-egui/src/i18n/tr.tsv
#	crates/ui-egui/src/i18n/uk.tsv
#	crates/ui-egui/src/i18n/vi.tsv
#	crates/ui-egui/src/i18n/zh-hans.tsv
#	crates/ui-egui/src/i18n/zh-hant.tsv
#	crates/ui-egui/src/panels/tests_brush_libraries.rs
2026-11-20 05:02:49 +07:00
dotCooCoo 8d61d2bd34 Retype: a tracking that translucent glyphs cannot take no longer drops the tracked prefix already found
A negative tracking candidate for glyphs that do not paint as one object returned the untracked line and discarded the best tracked reading found from an earlier seed. It now skips that candidate and tries the next.
2026-11-19 13:59:50 -08:00
dotCooCoo b0de3d983e Merge main into feat/retype-near-matches 2026-11-19 13:59:32 -08:00