Commit Graph
16804 Commits
Author SHA1 Message Date
HassanKhan d9a404f91b PDF import: no stroke match over lines finished past the limit (#8543)
Answers the fourth CodeRabbit review on #8549.

When a fill pass finishes lines beyond MAX_PARKED, their unstroked
glyphs are recorded (bounded at 4096). The first stroke after that
which could have gone over one of them ends the stroke pass, so a TJ
over more than 65 lines that comes back to where it began stays a
filled object and a stroked one for each part, as documented. Any
other first stroke drops the record, so type after an overflowing TJ,
filled only or not, is matched as before.

MAX_HELD's doc now says that one operator filling the same run of more
than 4096 glyphs twice at the same places is matched as well as it can
be: the reader tells no operator's start.
2026-11-18 16:03:34 +05:00
HassanKhan f23eb05224 PDF import: keep stroke boundaries in the fallback and long passes (#8543)
Answers the third CodeRabbit review on #8549.

- stroke_last no longer restyles the glyph drawn last once a boundary
  (end_fills) closed it: a stroke after an ActualText span no longer
  strokes its replacement text. A glyph stroked again where it was just
  drawn still stays one object.
- Past MAX_HELD, the held strokes go over the last run of consecutive
  fills they match with room for all of them, not the first, so a long
  stroke pass no longer takes the same glyphs an earlier operator
  filled at the same place.
- Docs: the limit is 64 kept-back lines plus the open one, so a TJ over
  up to 65 lines stays filled and stroked.
2026-11-18 15:27:08 +05:00
HassanKhan 8796b773ec PDF import: a stroke pass matches only glyphs filled since its last boundary (#8543)
Answers the second CodeRabbit review on #8549.

- A stroke that goes over no filled glyph (stroked type of its own) and
  the start and end of an ActualText span now end the stroke pass
  (Builder::end_fills): the held strokes are matched, the parked lines
  finished and the open line's fills closed, so a later stroke can't go
  over an earlier fill and a later span keeps its own replacement text.
- ActualText fills are ordinary entries in the line's fill list, and
  span strokes are held and matched in replay order like any other, so
  an A/B/A TJ in a span strokes the replacement. The actual_fills map,
  stroke_parked and has_actual_fill are gone.
- Past MAX_HELD, the held strokes are matched to the first run of
  glyphs filled one right after another that they go over
  (Builder::replayed), with bounded work, instead of each to its first
  match, which could reach an earlier operator's fill.
- Docs state that past 64 lines in one operator each part stays a
  filled object and a stroked one.
2026-11-18 14:46:42 +05:00
HassanKhan b3fd70bc52 Merge remote-tracking branch 'upstream/main' into fix-8543-pdf-tj-fill-stroke
# Conflicts:
#	docs/file-format-parity.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-18 13:12:26 +05:00
BFlat 16920418f6 Merge pull request #8101 from dotCooCoo/feat/plugin-budget-preference
Plug-ins: Preferences set the instruction budget for object-filter runs (Normal or Large)
2026-11-18 15:10:33 +07:00
BFlat 9cc2aa7a36 Merge pull request #8409 from dotCooCoo/feat/graphic-styles-alt-drag-style-onto-style
Graphic Styles: a style dropped on another with Alt replaces that style
2026-11-18 15:10:22 +07:00
BFlat b865f26818 Merge pull request #8544 from dotCooCoo/fix/bounded-field-rejects-invalid
Fields: range and mixed fields refuse text that reads as no number
2026-11-18 15:10:13 +07:00
BFlat 6e1e6d579e Merge pull request #8542 from Hassan1305/feat-3644-pdf-lang
PDF export: write the document language as the catalog's /Lang
2026-11-18 15:10:05 +07:00
BFlat e3a9bca2dc Merge pull request #8541 from dotCooCoo/fix/marquee-painted-shapes
Symbols: a marquee selects where an instance's fill and stroke effects paint
2026-11-18 15:09:57 +07:00
BFlat 202ecc1e91 Merge pull request #8440 from dotCooCoo/perf/ai-save-gradient-index
.ai save: gradient and pattern definitions are found by name and by gradient
2026-11-18 15:09:48 +07:00
HassanKhan e318f6cc67 PDF import: match a stroke pass to the glyphs filled last, in fill order (#8543)
A TJ can draw the same glyph at the same place twice (its kerning goes
back), so a stroke can't be matched to a filled glyph as it arrives:
[(A) -3500 (B) 4834 (A)] TJ put the first A's stroke on the last A and
left the earlier parts unstroked. Strokes over filled glyphs are now
held until their stroke pass ends and then matched to the glyphs filled
last, in the order they were filled, so each copy is stroked where it
was filled, while a glyph filled and stroked where one filled before
stands still strokes only the newest. At most 4096 strokes are held.

Docs: ordinary text gives one filled and stroked object per part; in an
ActualText span it stays one replacement object on the first glyph's
line and style.
2026-11-18 13:02:58 +05:00
BFlat b2f9aadb3e Merge pull request #8529 from dotCooCoo/feat/dialogs-scroll-when-too-large
Part of #5941: dialogs too large for the window scroll instead of running off the screen
2026-11-18 14:42:57 +07:00
BFlat 55a82b4ff8 Merge pull request #8457 from dotCooCoo/feat/symbols-panel-options-button
Symbols: the bottom bar's Symbol Options button edits the current symbol
2026-11-18 14:30:37 +07:00
HassanKhan 851c7cb372 PDF import: a TJ whose kerning starts a new line comes in filled and stroked (#8543)
The reader fills every glyph of a text-showing operator, then strokes
them. When a TJ's kerning started a new line part way through, the
first line was finished before the stroke pass came back to it, so its
strokes found no filled glyph and came in as stroke-only type over
fill-only type.

A line a glyph doesn't fit is now parked while a stroke may still be
drawn over it, and a stroke-only glyph is matched against the open line
and then the parked lines, newest first. Parked lines are finished
oldest first before the open line, so drawing order is kept, and at
most 64 are parked.
2026-11-18 12:23:10 +05:00
BFlat c72721a125 Merge pull request #8533 from dotCooCoo/fix/windows-save-extension
Windows Save As follows the selected file type (#5451)
2026-11-18 14:18:16 +07:00
BFlat ada472586e Merge pull request #8135 from dotCooCoo/fix/confined-exporter-and-placed-pdf-paths
MCP: confined exporter plug-ins and unreadable linked files keep paths outside the read roots
2026-11-18 13:53:34 +07:00
BFlat adcb7293d2 Merge pull request #8404 from dotCooCoo/fix/font-menu-document-brush-text
Type: the font menu's Document filter counts type in scatter brushes
2026-11-18 13:53:24 +07:00
BFlat 56bc5fe7cb Merge pull request #8515 from dotCooCoo/perf/eps-token-search-in-place
EPS import: token and search read a string in place instead of copying it
2026-11-18 13:53:14 +07:00
BFlat 1df314f891 Merge pull request #8518 from dotCooCoo/perf/find-font-list-once
Find Font: the document's font list is worked out once per document version
2026-11-18 13:53:05 +07:00
BFlat 84c21a8b36 Merge pull request #8519 from dotCooCoo/perf/proxy-mixed-index-paths
Color: the Fill and Stroke proxies find the selected objects through the id cache
2026-11-18 13:52:56 +07:00
dotCooCoo c24f1fc5a5 Fields: range and mixed fields refuse text that reads as no number
A range, mixed or spinner field that committed text it could not read
(`abc`, `(10+5)*2`) returned nothing and did not mark the commit as
refused. Enter in such a field then confirmed an open dialog with the old
value, and in Save for Web's Optimize to File Size rows it ran the search
with the old size.

The field now refuses that text as unit fields do: it flashes, shows its
value again, and the Enter does not confirm the dialog.
2026-11-17 22:49:09 -08:00
HassanKhan 0865242d2f PDF export: write the document language as the catalog's /Lang (#3644)
The writer passed no language to craft-pdf, so exported and printed
PDFs had no /Lang and accessibility checkers failed primary-language.
Writer::new now passes the BCP 47 tag of the Document Setup language
(new vectorcraft_doc::setup::language_tag, en-US by default) through
write::Writer::new_with_language, which writes the catalog's /Lang and
the XMP dc:language. A language with no tag writes none. /MarkInfo is
left for tagged PDF (#3643).
2026-11-18 11:46:27 +05:00
dotCooCoo 9e059d6e99 Merge main into perf/ai-save-gradient-index 2026-11-17 22:38:32 -08:00
dotCooCoo ef3659caa5 Merge main into feat/plugin-budget-preference 2026-11-17 22:27:52 -08:00
dotCooCoo 2fa55b2aeb Merge main into feat/symbols-panel-options-button 2026-11-17 22:24:17 -08:00
dotCooCoo 847c2e9536 Merge main into feat/graphic-styles-alt-drag-style-onto-style 2026-11-17 22:24:16 -08:00
dotCooCoo 84c9d93956 Symbols: a marquee touches what an instance's fill and stroke effects paint
A marquee across the shapes that the geometry effects of a symbol
instance's active fill or stroke paint outside its box now selects the
instance, as a click there does. An image is likewise touched where its
own fills and strokes paint outside its frame. Outline mode keeps the
box alone.
2026-11-17 22:18:27 -08:00
dotCooCoo f1dbcb9e69 Part of #5941: Save for Web's Preview in Browser no longer covers the lists
With the preview panes at their narrowest (a 640 by 400 window), Preview
in Browser was drawn over the Download list. It now goes on a row of its
own below the Zoom and Download lists when the panes are too narrow for
it beside them. The Save for Web test checks that it clears the list.
2026-11-17 22:17:29 -08:00
BFlat 50c7208fe3 Merge pull request #8466 from dotCooCoo/perf/find-command-index
Commands: find_command looks commands up in an index built once
2026-11-18 13:15:20 +07:00
BFlat e49686185e Merge pull request #8465 from dotCooCoo/feat/scatter-brush-hue-jitter
Brushes: Scatter Brush Options has Hue Jitter, a per-copy hue turn
2026-11-18 13:15:11 +07:00
BFlat de6d1851d3 Merge pull request #8468 from dotCooCoo/feat/new-type-normal-character-style
Type: new type takes the font and size of a redefined [Normal Character Style]
2026-11-18 13:15:00 +07:00
BFlat 405668a384 Merge pull request #8486 from dotCooCoo/fix/place-into-its-layer
Place: a file read in the background goes into the layer it was placed in
2026-11-18 13:14:52 +07:00
BFlat da0c76dc69 Merge pull request #8484 from dotCooCoo/perf/three-d-export-enabled-once
3D and Materials: the Export 3D Object button's state is worked out once per document revision
2026-11-18 13:14:44 +07:00
BFlat 7c6eb1b289 Merge pull request #8426 from dotCooCoo/perf/shape-builder-hatch-sweep
Shape Builder: the hover and drag hatch tests each line only against the edges spanning it
2026-11-18 13:14:34 +07:00
BFlat add89a0606 Merge pull request #8488 from dotCooCoo/perf/live-selected-of-one-pass
Blend: selected blends, envelopes and meshes are found along one path per object
2026-11-18 13:14:25 +07:00
BFlat 0c7b92730b Merge pull request #8467 from dotCooCoo/perf/direct-blend-spine-guard
Direct Selection: the selected blend spine check returns at once when no blend is selected
2026-11-18 13:14:15 +07:00
BFlat ec6c053bdd Merge pull request #8504 from dotCooCoo/perf/select-step-siblings
Select: Next Object Above and Below check only the selected object's siblings
2026-11-18 13:14:06 +07:00
BFlat 2c091873c1 Merge pull request #7779 from dotCooCoo/fix/pl-catalog-translates-art-artwork-two-ways-in
i18n: Polish labels and messages call art and artwork kompozycja
2026-11-18 13:13:58 +07:00
BFlat 952551922b Merge pull request #8318 from dotCooCoo/feat/discover-help-panel
ui: enable Help search for tools, commands, and tutorials
2026-11-18 13:13:48 +07:00
BFlat 9e7ae92c8d Merge pull request #8036 from dotCooCoo/feat/display-profile-read-again
Color: Edit › Refresh Monitor Profile reads the display's profile again
2026-11-18 13:13:37 +07:00
BFlat 1350204bfd Merge pull request #7706 from dotCooCoo/feat/3d-graphics-extrude-side
3D: graphics map onto Extrude & Bevel's walls and bevels
2026-11-18 13:13:27 +07:00
BFlat 23fc7cb411 Merge pull request #8398 from dotCooCoo/fix/i18n-tr-revolve-reset
i18n: Turkish 3D messages name Revolve and Extrude & Bevel by their labels
2026-11-18 13:13:17 +07:00
BFlat 2c8f2380dc Merge pull request #7976 from dotCooCoo/fix/i18n-recent-feature-messages-translated
i18n: Automatic Plane Positioning errors are translated in every complete-message catalog
2026-11-18 13:13:07 +07:00
BFlat db475a0458 Merge pull request #7937 from dotCooCoo/fix/i18n-script-run-parameter-refusals
i18n: script.run's other parameter refusals are translated
2026-11-18 13:12:57 +07:00
BFlat 20d8217312 Merge pull request #7950 from dotCooCoo/feat/smooth-bridge
Path Precision Tools: Smooth Bridge joins two circles with concave arcs
2026-11-18 13:12:40 +07:00
BFlat 8c80810f2a Merge pull request #8050 from dotCooCoo/feat/interpolate-control-points
Direct Selection: optional preference interpolates curve handles when an anchor moves
2026-11-18 13:12:30 +07:00
BFlat ab285c66c8 Merge pull request #8437 from dotCooCoo/feat/shear-angle-axis
Shear: an Angle axis shears along a line at a custom angle
2026-11-18 13:12:18 +07:00
BFlat 0bba8a8666 Merge pull request #8423 from dotCooCoo/feat/symbols-redefine-shift-keeps-art
Symbols: Shift with Redefine Symbol keeps the art as ordinary art
2026-11-18 13:12:06 +07:00
BFlat 3443d575f1 Merge pull request #8410 from dotCooCoo/feat/transform-constrain-pie-angle
Transform: Ellipse Properties has a Constrain Pie Angle link that keeps the pie span
2026-11-18 13:11:56 +07:00
BFlat d17d152620 Merge pull request #8386 from dotCooCoo/feat/symbols-alt-drag-redefine
Symbols: Alt-dragging art onto a symbol in the panel redefines it
2026-11-18 13:11:46 +07:00