Commit Graph
637 Commits
Author SHA1 Message Date
dotCooCoo cdcaab9301 Retype: stacked lines become one area type object
Part of #4934. type.retype set each line of outlined text as its own
point type object, even when the lines stack as one paragraph.

- Opaque, Normal lines with a solid fill or none and no stroke that
  follow each other in paint order, with the same group, paint, font,
  size, turn and tracking, each the same leading (0.25 to 3 times the
  size) below the one before and lined up at their starts, ends or
  centers, become one area type object. Its leading is Auto when Auto
  puts the last baseline in place, else the mean distance between the
  baselines, and its alignment is left, right or center. Its frame is
  Convert To Area Type's, now shared through typemenu::point_to_area.
  An untracked line of one or two glyphs takes the others' tracking.
- Every object is laid out and compared with the outlines first: when
  area type would move a glyph the lines stay multi-line point type.
  When that also moves a glyph, the block ends at that glyph's line and
  the lines after it join again. Type whose bounds would reach past the
  coordinate limit stays apart.
- Text Wrap objects above new area type are taken into account; when
  checking them on the changed layers would copy more than 2,000,000
  anchors, subpaths and shapes, the lines stay multi-line point type.
  text::wrap_copy_units counts that work without copying the outlines,
  and wrap_work no longer copies them to count.
- The result's fonts entries add leading and area, and texts join an
  object's lines with line breaks.

These rules are VectorCraft's own. Docs: docs/mcp.md (Retype several
lines), docs/type-parity.md (Retype row), docs/target-app-parity.md,
docs/roadmap.md (M7 row).
2026-11-19 10:22:49 -08:00
dotCooCoo 45c6fb40cb Retype: evenly spaced glyphs keep their spacing as tracking
Part of #4934. type.retype set a line spaced by tracking as one point
type object per glyph, since untracked type does not draw the glyphs
where the outlines are.

- A line of three or more glyphs that most gaps space evenly apart now
  takes that spacing as its tracking (1/1000 em, tried rounded to a
  whole number within 0.05, then as measured). The font's advances and
  pair kerning are left out of the measure, and word spaces are counted
  after the tracking. When untracked type also draws the line, the line
  stays untracked if the tracking is under one unit or the tracked type
  would drop a gap one space wide, so "a b c" stays "a b c". Negative
  tracking is set only on opaque, Normal lines with a solid fill or
  none and no stroke.
- Where a line splits, the glyphs after the split take the tracking
  their own gaps give, and a tracked line whose type misplaces its
  first glyphs is set again without tracking. The measure has a layout
  budget, so long or widely spaced lines are bounded.
- The result's fonts entries add tracking.

These rules are VectorCraft's own. Docs: docs/mcp.md (Retype tracking),
docs/type-parity.md (Retype row), docs/target-app-parity.md,
docs/roadmap.md (M7 row).
2026-11-19 07:53:13 -08:00
bflatastic ccdad44caf Merge main into #8554
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-19 16:05:01 +07:00
bflatastic 87b64100ba Merge main into #8546
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-19 15:35:31 +07:00
bflatastic 615bc1e0d3 Merge main into #7373
# Conflicts:
#	docs/gaps.md
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-19 15:34:18 +07:00
bflatastic 101f3ec2aa Merge main into #8653
# Conflicts:
#	docs/file-format-parity.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 15:28:09 +07:00
bflatastic a82a968b25 Merge main into #8645
# Conflicts:
#	docs/gaps.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 15:27:12 +07:00
bflatastic b9c3215a94 Merge main into #8292
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-19 15:26:08 +07:00
bflatastic be7fb767de Merge main into #8286
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-19 15:25:23 +07:00
bflatastic 618fb1416d Merge main into #8201
# Conflicts:
#	docs/file-format-parity.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 15:24:38 +07:00
bflatastic 06706b1660 Merge main into #8122
# Conflicts:
#	docs/gaps.md
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-19 15:23:56 +07:00
bflatastic c4d20e2c18 Merge main into #7992
# Conflicts:
#	docs/gaps.md
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-19 15:22:54 +07:00
bflatastic 7dfe58e09a Merge main into #7822
# Conflicts:
#	docs/gaps.md
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-19 15:22:11 +07:00
bflatastic 08b01d714c Merge main into #7652
# Conflicts:
#	docs/gaps.md
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-19 15:20:44 +07:00
bflatastic e4169d7412 Merge main into #7515
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 15:19:43 +07:00
HassanKhan 44f04bd5ae Merge remote-tracking branch 'upstream/main' into fix-8549-lost-reset
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 13:11:51 +05:00
bflatastic feb024d8a7 Merge main into #8347
# 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/da.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/gu.tsv
#	crates/ui-egui/src/i18n/id.tsv
#	crates/ui-egui/src/i18n/ka.tsv
#	crates/ui-egui/src/i18n/ru.tsv
#	crates/ui-egui/src/i18n/sv.tsv
#	crates/ui-egui/src/i18n/vi.tsv
#	crates/ui-egui/src/i18n/zh-hans.tsv
#	crates/ui-egui/src/i18n/zh-hant.tsv
#	docs/gaps.md
2026-11-19 15:04:59 +07:00
bflatastic c528513911 Merge main into #6295
# Conflicts:
#	docs/gaps.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 14:50:17 +07:00
BFlat eef7bd23b4 Merge pull request #6713 from yoriswind/codex/6470-scissors-shared-snap
Fix #6470: use shared drawing snaps for Scissors
2026-11-19 14:46:28 +07:00
BFlat 765fe34ee0 Merge pull request #6593 from yoriswind/codex/6543-index-thread-overlay-selection
M5: index selection lookups for text thread overlays
2026-11-19 14:46:18 +07:00
jayzed80 b20f1ffd2f fix(ui): a hovered dimmed tool in the All Tools drawer keeps its text readable (#8294)
A dimmed row's hover painted the lighter hover fill, which left its dim
text at 4.3:1 in the default Charcoal theme and at 4.1:1 in Classic Dark,
under the 4.5:1 the dim colour is drawn for. A dimmed row can't be dragged
in again, so its hover is now a recess in the panel's darker fill, which
keeps 4.5:1 or better in every colour scheme and brightness.

The docs now give the measured range: 4.5:1 or better on the panel in every
Modern brightness and in Classic's lightest and darkest settings, 5.4:1 in
the default theme, and Classic's own dim text at 3.55:1 at its middle-dark
brightness, which the drawer draws as that palette does.

Tests: a_hovered_dimmed_row_stays_readable (new) checks the hover fill and
its contrast in both schemes and all four brightnesses;
tools_in_the_toolbar_are_dimmed_in_the_drawer now covers every palette too.
2026-11-19 06:50:50 +00:00
HassanKhan 6ec76d7513 Canvas: edge scrolling arms from the press and from every move of a frame
Review follow-up for #8551:
- The press position is where the primary button went down, not where
  the frame's input left the pointer: a press and a move to the edge in
  one input batch has dragged, and holding still there now scrolls.
- Any move of a frame that goes 3 points from the press arms edge
  scrolling, not only the frame's last position: a move away and back
  within one frame still dragged.
- docs/roadmap.md: the M11 row, status line and revision history mention
  the edge scrolling; the View & navigation row points to its evidence.
2026-11-19 11:41:31 +05:00
yoriswind 0471818814 Merge current main while preserving PR #6713 2026-11-19 06:32:22 +00:00
yoriswind 28ccda8dd5 Merge current main while preserving PR #8122 2026-11-19 06:31:27 +00:00
yoriswind a346c381e4 Merge main into in-window menu access keys 2026-11-18 22:30:44 -08:00
yoriswind b21a218b21 Merge current main while preserving PR #7515 2026-11-19 06:30:20 +00:00
HassanKhan de8b9e59dc PDF import: keep lost fills when a fill pass starts a new line (#8549 follow-up)
Answers the CodeRabbit review on #8653.

A glyph kept as an outline ends the open line, so the next mapped glyph
went through park_text's fallback arm into flush_text, which forgot the
lost glyphs in the middle of the fill pass. flush_text is now
finish_text plus forgetting them, and park_text calls finish_text:
starting a new line draws nothing else, so it is never a boundary.

Docs: the M4 roadmap row names this follow-up.
2026-11-19 11:28:37 +05:00
yoriswind 20c54c1c33 Merge main into selected guide row highlight 2026-11-18 22:26:46 -08:00
yoriswind e0eceaa8d1 Merge main into selected dimension extension-line controls 2026-11-18 22:22:08 -08:00
yoriswind 4fb16fbab2 Merge current main while preserving pattern-only keyboard nudges 2026-11-19 06:21:54 +00:00
yoriswind 6bca1e4fb4 Merge current main for Brush Options Key Color canvas sampling
Retain the owned canvas aperture and upstream modal opened-state handling,
keep both appended test functions and complete documentation histories, and
pass None in the new ordinary-modal test call.
2026-11-18 22:21:51 -08:00
jayzed80 744b54ee76 Merge remote-tracking branch 'upstream/main' into fix/all-tools-panel-text-dim-8294
# Conflicts:
#	docs/target-app-parity.md
2026-11-19 06:13:14 +00:00
HassanKhan 2113b214f1 PDF import: forget lost fills at flush points (#8549 follow-up)
Since #8549 the glyphs of lines finished past MAX_PARKED were kept
until the next stroke and, past 4096 of them, matched every stroke.
A `2 Tr` word after a dense page of filled-only type then came in as a
filled object and a stroked one.

- flush_text forgets them: nothing is drawn between an operator's fill
  pass and its stroke pass. end_text keeps them, since it also runs
  mid fill pass for a glyph kept as an outline.
- LostFills keeps the first 4096 glyphs and matches only those; there
  is no overflow that matches every stroke.
- replayed counts the lines its `left` check looks at toward
  MAX_REPLAY_WORK.
2026-11-19 11:06:23 +05:00
jmvergesandClaude Opus 5.5 dc57c26f69 Merge main (8fcadbc3c) into fix/ai-art-brush-tints-of-a-spot-color
Conflicts in docs only (status lines, changelog rows and table rows):
main's entries and this branch's are both kept, each once. Main now has
this branch's first File formats row fix (#868) itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 05:43:15 +00:00
yoriswind 0580e3fbb5 Merge current main into PR #7652
Preserve both the qualified feature and current main documentation.
2026-11-18 21:09:02 -08:00
ruchirguitar 82c5ad7a31 docs: distinguish G5 revised estimate from unchanged milestone estimates 2026-11-19 10:08:27 +05:30
ruchirguitar 0c65ede5de G5: Add built-in Media Controls symbol library
# Conflicts:
#	docs/gaps.md
#	docs/target-app-parity.md
2026-11-19 10:08:20 +05:30
ruchirguitar 8fcadbc3c1 Fix #864: SVG export preserves the document unit in viewBox and width/height (#8610)
* SVG export: preserve document unit in viewBox and width/height (#864)

When exporting SVG documents with physical units (mm, cm, in, pc), emit
the physical unit suffix on the root <svg width=... height=...>
attributes while keeping viewBox numbers and inner coordinates in 1:1 points
per SVG 1.1 coords §7.10. This avoids the 75% scaling mismatch when opening
drawings in external tools such as Inkscape or LightBurn, and preserves
the document unit setting across save/open round trips. Unitless documents
(points, pixels) continue to emit unitless dimensions.

Tested via export_physical_units_writes_unit_suffixes in vectorcraft-svg
and full round-trip svg_round_trip_preserves_document_units in vectorcraft-engine.
Ran cargo xtask ci (fmt, clippy, tests, xtask gates).

* SVG export: preserve nonzero width and viewBox on extreme small dimensions
2026-11-18 23:27:00 -05:00
jayzed80 4443403b3b Merge remote-tracking branch 'upstream/main' into fix/all-tools-panel-text-dim-8294
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-19 03:40:16 +00:00
ruchirguitar 36cc381f40 Merge main into raster editor picker branch (#5804) 2026-11-19 08:14:23 +05:30
yoriswind f787dac15f Merge current main documentation into PR #7652 2026-11-18 15:46:01 -08:00
yoriswind da916087fb Merge current main documentation into PR #6593 2026-11-18 15:45:59 -08:00
dotCooCoo da5985eeab Merge main into feat/stipple-brush-library 2026-11-18 14:00:16 -08:00
BFlat 5dddce1425 Merge pull request #8129 from jmverges/fix/ai-grouped-clipping-paths-in-compound
.ai import: clipping paths grouped in a compound path are its subpaths
2026-11-19 04:37:33 +07:00
ruchirguitar 0858c0d516 Merge main into feat/5804-private-editor (#5804) 2026-11-19 01:46:48 +05:30
yoriswind 34b6637cb4 Merge main into the text-thread overlay selection fix
Preserve the reviewed selection filtering and include the upstream status-test and catalog corrections.
2026-11-18 11:58:47 -08:00
yoriswind 65351f9f6c 7234: resolve main conflicts preserving contribution 2026-11-18 10:47:18 -08:00
jmvergesandClaude Opus 5.5 482981a248 Merge main (4cae5249e) into fix/ai-art-brush-tints-of-a-spot-color
Conflicts in docs only (status lines, changelog rows and table rows):
main's entries and this branch's are both kept, each once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 18:21:32 +00:00
jmvergesandClaude Opus 5.5 3d2bbf5d69 Merge main (4cae5249e) into fix/ai-grouped-clipping-paths-in-compound
Conflicts in docs only (status lines, changelog rows and table rows):
main's entries and this branch's are both kept, each once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 18:21:32 +00:00
bflatastic a69c00e0de Merge main into #8295
# Conflicts:
#	crates/ui-egui/src/i18n/ca.tsv
#	crates/ui-egui/src/i18n/da.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/vi.tsv
2026-11-19 01:20:33 +07:00