Commit Graph
17504 Commits
Author SHA1 Message Date
BFlat f619888fe2 Merge pull request #8074 from dotCooCoo/feat/intertwine-layers-drop
Layers: dragging objects into an Intertwine group adds them to it
2026-11-17 08:19:04 +07:00
BFlat 374ff5b8c3 Merge pull request #8191 from dotCooCoo/fix/fold-check-per-document
Packaging Tools: each document keeps its own Check Fold Lines result
2026-11-17 08:18:55 +07:00
BFlat 05c7e0d559 Merge pull request #8071 from dotCooCoo/feat/type-on-path-desired-spacing
Type: type on a path takes Justification's Desired spacing and glyph scaling
2026-11-17 08:18:47 +07:00
BFlat be60816347 Merge pull request #8046 from dotCooCoo/perf/svg-glyph-shared-document
SVG glyphs: a glyph from a shared SVG document reads only what it refers to
2026-11-17 08:18:39 +07:00
BFlat f8855d748a Merge pull request #8054 from dotCooCoo/fix/swatch-css-gradient-midpoints
Swatches: CSS export writes gradient midpoints and curves as stops
2026-11-17 08:18:32 +07:00
BFlat f3a5d3788a Merge pull request #7973 from dotCooCoo/feat/palette-panels-and-effects
Command Palette: lists commands that run from a pick, plus panels and effects
2026-11-17 08:18:23 +07:00
BFlat 20ef08768a Merge pull request #8052 from dotCooCoo/feat/pathfinder-mixed-shape-mode
Pathfinder: Shape Mode buttons show a question mark for selected members in different modes
2026-11-17 08:18:15 +07:00
dotCooCoo f053c280a5 Command Palette: a menu item in the path is named as the menu bar draws it
The callout, the row's home and the search index translated a filter plug-in's name, which
Object › Plug-ins shows as written, and translated other items by their English label alone,
while the menu bar translates them by the command id first (File › Close is Cerrar archivo in
Spanish). They now use the menu bar's rule.
2026-11-16 17:14:07 -08:00
dotCooCoo 8051a7face Live Paint: art drawn in a group under a part's name is not counted as a part
Faces and edges are the group's paths named Face or Edge, so type or a
group drawn in an isolated Live Paint group under one of those names is
no longer counted by Gap Options, Info or Make, and Expand keeps it, as
it keeps type named like the sources group.

Exit Isolation Mode while editing a pattern, an opacity mask or a symbol
applies a shape still being drawn with Real-time Drawing and Editing off
before the paths drawn in an isolated Live Paint group join it.
2026-11-16 17:14:01 -08:00
dotCooCoo 54c415468b i18n: dialog labels use the language's colon
Dialogs and the toolbar editors added a plain ":" after a translated
label, so French showed "Points isolés:" without the no-break space
before the colon. A new `i18n::colon` helper appends the catalog's ":"
row instead. French writes U+00A0 before the colon, Chinese and Japanese
write a full-width colon, and English and the other languages are
unchanged.

- Field labels: the generic parameter dialogs, Text Flow, Radial Blur's
  Horizontal and Vertical, the graph type dialog, and the headings of
  the toolbar drawer and the Add Tool menu.
- A label followed by a value: Radial Blur's Blur Center value for
  screen readers, the Simplify point count, the Dimension preview, the
  Revolve reset tooltip, Smart Punctuation's report, the PDF and print
  option summaries, the PSD import layer count, the Recolor color share
  tooltip, the Revolve light names and the script check's problems.
- The style dialogs' attribute list showed two colons ("Font Size::
  12"). It now shows one.

Part of #7991 (reported by bortekfr).
2026-11-16 17:06:34 -08:00
dotCooCoo d1b588279f Text: a variable font's Windows cell height takes its MVAR changes
FontFace::win_cell_height adds the MVAR `hcla` and `hcld` deltas to
usWinAscent and usWinDescent at the face's location, so EMF and WMF
type with a positive font height is sized against the instance it is
drawn in. The variable test font gains the two records, and a test
checks that Bold's cell is 200 units taller than Regular's.

The comments and docs/mcp.md also say that characters the mapped face
has no glyph for are drawn from other faces at the same size and
Horizontal Scale.
2026-11-16 17:00:27 -08:00
dotCooCoo 76acc2e16c WebP: lossy export refuses a frame whose first partition overflows its size field
A VP8 key frame stores its first partition's size in 19 bits (RFC 6386
section 9.1). The encoder writes 524,287 for a larger partition too, and
a decoder then reads the token partition from the wrong offset. A lossy
WebP whose size field is at that limit now fails with an error that
suggests a lower resolution or Lossless, instead of writing a file that
does not decode.
2026-11-16 17:00:02 -08:00
dotCooCoo 6c2ac07b6b i18n: Rasterize dialog labels its fields in the UI language
Object › Rasterize… labels its fields from the command's parameter
names. Add Around, Anti Alias and Color Model had no catalog rows, so
they stayed in English in every language, and the resolution field was
labeled by its unit, "Ppi".

- A `ppi` field in a parameter dialog is labeled Resolution, and shows
  its unit after the value from the catalog's "{n} ppi" row (French
  "ppp").
- Each complete catalog gets rows for Add Around, Anti Alias, Color
  Model and Resolution. Anti Alias, Color Model and Resolution use the
  catalog's own "Anti-aliasing:", "Color Model:" and "Resolution:"
  rows without the colon.

Part of #7991.
2026-11-16 16:59:18 -08:00
dotCooCoo 937ca6a457 .ai import: a blend whose record's orientation fails the check takes the one drawn
When the orientation the record names didn't lay the steps out turned
as drawn, the import took the orientation whose steps sit closest to
the drawn ones by their centers alone. A half turn leaves the centers
in place, so a blend drawn Align to Path whose record named Align to
Page came in as Align to Page, with each step turned from its drawing.
The import now takes the closest of the orientations that pass the
check, and the closest of them all only when neither passes.

Test: grouped red and blue squares drawn turned on a spine running
right to left come in as Align to Path with a record naming either
orientation.
2026-11-16 16:51:46 -08:00
dotCooCoo 56d58735f7 i18n: Create Gradient Mesh dialog shows its labels translated
Object › Create Gradient Mesh… opens the generic parameter dialog with
rows, cols, appearance and highlight. The labels look up the strings
"Rows" and "Cols", which no catalog had, so they stayed in English.
The "cols" key is now labeled Columns, and every complete catalog gets
plain "Rows" and "Columns" entries with the wording of its existing
"Rows:" and "Columns:" entries. The heading is translated through the
heading lookup this branch builds on.

The "cols" label is shared by every generic parameter dialog, so Repeat
Options for a grid repeat and plug-in parameters named "cols" without a
label of their own now read Columns too. Repeat Options also labels
"flipCols" Flip Columns, to match.

Part of #7991.
2026-11-16 16:44:16 -08:00
dotCooCoo 3793bedf07 i18n: resolution fields show the ppi unit in the interface language
Flatten Transparency, Document Raster Effects Settings, Effect ›
Rasterize, the PNG options, the PDF save dialog's Compression section
and the Place dialog's file line wrote "ppi" as a literal, so a French
interface showed "ppi" where the catalogs write "ppp".

They now take the unit from the existing `{n} ppi` row, which every
catalog already translates. The dialog fields use a new `ppi_suffix`
helper next to `unit_suffix` in `dialogs/form.rs`. A field reads the
unit it shows, so in French "200 ppp" reads as 200.

Part of #7991, reported by bortekfr.
2026-11-16 16:43:31 -08:00
dotCooCoo 5007ea458b .ai import: a blend's outline check compares each member in its own fill
The check that the record's orientation lays the steps out as drawn
compared a step's outline as one set of lines. A half turn of a group
of a red square beside a blue one keeps that outline and trades the
squares' places, so such a blend passed as Align to Path. Each subpath
is now compared with the other's subpaths of a matching fill; a compound
path's members take its fill, and gradient or pattern fills are compared
with each other by their outline.

The check also tries the laid steps nearest first when it compares
outlines. Before, every step in place was compared, so a hundred steps
crowded within the tolerance used up the outline comparisons on the
first one and the check failed.

Tests: grouped red and blue squares on a spine running right to left,
drawn unturned, keep Align to Page with a record naming either
orientation, and keep Align to Path when drawn turned; a group of a
gradient-filled triangle turned a half turn doesn't match; a hundred
crowded steps match their drawn copies; 998 crowded steps keep Align to
Page.
2026-11-16 16:39:04 -08:00
dotCooCoo 046dc65db8 Command Palette: a tool on a torn-off strip is named without its group
A row's home, the footer and the screen-reader text named a tool on a strip torn off a group as
hidden "in the ... group", while the strip shows each of its tools on its own button and the
callout outlines that button. A torn-off group's tools are now named by their toolbar alone, on the
Tools panel and on toolbars made with New Toolbar.
2026-11-16 16:34:44 -08:00
dotCooCoo fb927525f6 Metafile import: a LOGFONT average character width becomes Horizontal Scale
Follows #7608. EMF and WMF type ignored the font's average character
width, and a positive font height was read as a fixed 0.85 of the cell.
Both changes are to how the importer reads a LOGFONT's size fields.

- When the face gives an average width (OS/2 xAvgCharWidth), a font's
  average character width becomes Horizontal Scale: the face's average
  width at the type size is stretched or narrowed to the font's width,
  also when the size is held at its 5000 pt limit. A negative width is
  read as its absolute value, and the width is ignored when the height
  is 0.
- A positive height is the character cell. The em is the cell times
  unitsPerEm divided by the face's usWinAscent plus usWinDescent (its
  ascent plus descent when it has no OS/2 table). Type with a positive
  height in existing files changes size.
- A font the system lacks is measured in the face VectorCraft draws it
  in.
- FontFace gets win_cell_height and average_char_width.

LOGFONT: https://learn.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-logfontw
MS-EMF 2.2.13 LogFont: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-emf/1cd7cb7a-1a7c-48d2-b4a4-c218f9d12100
2026-11-16 16:28:21 -08:00
dotCooCoo 086810b9aa Print: a typed Scale W or H is the base for the next linked change
With the link on, a W or H typed in the dialog sets both fields, but the
values the link compares a later change against stayed at the ones from
before the edit. A height set through ui.dialog.set before the next frame
then matched neither, so W and H stayed apart and Done refused them. The
dialog now remembers W and H after a typed edit.
2026-11-16 16:26:24 -08:00
dotCooCoo 7d1e0dd30e Type: Convert To Point Type keeps forced line breaks
A line that starts after a forced line break (U+2028) is no longer taken
for a soft wrap, so converting area type to point type no longer adds a
paragraph return after each forced line break.
2026-11-16 16:24:01 -08:00
dotCooCoo 4eab8c9d10 Type: an insert that flows on into the next frame takes the caret with it
When type.insert at the Type tool's caret pushes the caret's place into the
next frame of threaded text, the caret now goes to that frame, so typing
continues after the insertion instead of before the text that moved on.
2026-11-16 16:23:58 -08:00
dotCooCoo c8a0650bcd Command Palette: an effect's item in the path translates as the Effect menu's does
The callout, the row's home and the search index named a built-in effect's menu item with the
plain translation of its English label, while the Effect menu translates it by the effect id
(Effect › Pathfinder › Réunion in French). They now use the effect id first, and a live-effect
plug-in's name stays as written, as in the menu.
2026-11-16 16:19:55 -08:00
dotCooCoo 4d9dde7461 Shortcuts: OK in Keyboard Shortcuts saves Hold Shortcuts and its delay
When OK in Edit > Keyboard Shortcuts changes Hold Shortcuts or the Hold
Shortcut Delay, the preferences are copied into the saved UI state and the
host is asked to write the preferences file, as OK in Preferences does.
Before, the change waited for the host's delayed save.
2026-11-16 16:19:00 -08:00
dotCooCoo 5fa4d879dd MCP: describe Save Changes for excluded rows past the swatches and rows that share a color 2026-11-16 16:18:59 -08:00
dotCooCoo 7c60eb472f Recolor Artwork: Save Changes adds no color for an excluded row past the group's swatches
An excluded row with no swatch of the group gave Save Changes its current color, which joined the
group, while OK adds nothing for it. It now sends a null in that place, which adds no swatch.

The row found for a swatch's color is now a row that gives the color a new color, before an
excluded row or one that removes the color, as recolor.apply maps the color with that row. Save
Changes and OK no longer remove a swatch, or keep its color, while the art takes another row's
new color.
2026-11-16 16:14:53 -08:00
dotCooCoo de53385081 Print: Overprint Black docs say which paints are not marked
Rich, RGB, Lab, spot-linked and lighter blacks are not marked to
overprint, and paints already set to overprint keep that setting. The
docs, params text and progress line said these blacks knock out.

docs/mcp.md also says that a symbol instance print leaves unplaced, past
16,000,000 objects of printed art or 128 drawn levels, is judged by its
symbol's own art.
2026-11-16 16:14:01 -08:00
dotCooCoo 1a1bb1fc28 .ai import: a blend's outline check reaches its last steps
With more than 16 drawn steps, the check compared the outlines of the
first 16 it tried and took the rest by their sizes, so a last step drawn
turned the other way still matched. It now compares the outlines of 16
steps spread evenly from the first to the last. A step that would take
more than 64 outline comparisons matches none, so the record's
orientation is not taken on an outline that was not compared.
2026-11-16 16:13:19 -08:00
datatimp 2f37809bf6 Layers panel: the Alt-drag copy cursor is the panels' add cursor, so Windows shows the plus (#8217) 2026-11-16 19:12:53 -05:00
dotCooCoo 7d5b4c18cc Type: an input method's text after an Alt chord is typed once on Windows
Windows sends an empty pre-edit before each input method commit, and an
input method can delete the text around the caret before it commits. An
Alt chord press followed by either of these and then the commit was not
paired with the commit, so the chord's character was typed before the
committed text. Both events now sit between the press and its text, and
the test covers them.
2026-11-16 16:11:17 -08:00
el-j 7194204871 Address review comments: reuse clear_transparency helper and run layer normalization only without transparency 2026-11-17 01:04:57 +01:00
dotCooCoo 5255d61273 Tests: a key typed before a wait keeps later letters from its dialog
The test for a key typed before a wait that opens a dialog now presses a
letter between the two keys and checks that neither its press nor its text
reaches the dialog. A second test sends the same keys in the web build's
order, with each text before its press.
2026-11-16 16:03:02 -08:00
dotCooCoo cd3b090518 Shortcuts: after a chord before a hold key, the key's repeats reach the frame
When a command chord comes before a key with a hold shortcut in one frame,
and the key's wait ends in that frame, the key goes back to the frame as
with Hold Shortcuts off. Its repeats in that frame, the text they type and
its repeats in later frames now go back too; before, they were held back
until the key was let go.
2026-11-16 16:03:01 -08:00
dotCooCoo 3046868fbc Shortcuts: a shifted key with a hold shortcut holds before the character it types
When one entry holds a key with Shift (Shift+1) and another the character
that key types (`!`), holding Shift+1 runs the hold shortcut of Shift+1.
Before, the typed character was matched first, so the Shift+1 hold
shortcut could not run.
2026-11-16 16:02:53 -08:00
dotCooCoo df45b7cc4b Blend: Type, Ramp and Reverse Spine count a selected key as its blend
The Blend panel dimmed Type, Ramp and Reverse Spine only when a selected
object was itself a blend without a spine. With a key of each of two
blends selected through Direct Selection, the controls stayed enabled
while the commands, which act on each key's blend, refused the edit.
The panel now checks each selected object's nearest blend, as the
commands resolve it.
2026-11-16 16:01:47 -08:00
dotCooCoo bfd6294b72 .ai import: a blend's outline check compares points along each side
The check that keeps a record's orientation compared two outlines by
their anchors alone. A square with its top side bent inward has the same
corners as its half turn, so the two matched. The check now also
compares the points a quarter, half and three quarters along each
segment, in both directions.
2026-11-16 16:01:19 -08:00
dotCooCoo 3dd40902a5 Print: note EPS export of process-named spot stops with plates
EPS export writes a gradient whose stop links to a spot swatch named
Cyan, Magenta, Yellow or Black and carries process plates in process
colors, with a warning. The stop_inks doc comment and the progress-doc
line now say so.
2026-11-16 15:59:22 -08:00
dotCooCoo d2b604384b Preferences: the sideways-scroll sentence no longer depends on Zoom with Mouse Wheel
Cmd/Ctrl-wheel scrolls the canvas sideways whether Zoom with Mouse Wheel
is on or off, so the General description for Scroll Sideways with
Cmd/Ctrl + Wheel drops the "while Zoom with Mouse Wheel is off" opening,
in English and in every catalog row.
2026-11-16 15:58:01 -08:00
dotCooCoo b33409d1a5 MCP: the headless UI catalog lists ui.foldPreview
Regenerated crates/mcp/src/ui_catalog.rs with `cargo xtask ui-commands` so it
matches the ui.foldPreview row in crates/ui-egui/src/menus/ui_commands.rs.
2026-11-16 15:56:02 -08:00
dotCooCoo 0278088909 Tests: the selection export warnings test uses an option WebP doesn't read
Lossy WebP is now written without a note, so the WebP case of
export_selection_reports_the_encoders_warnings asks for interlaced,
which WebP files don't read, and checks that the selection export and
the whole-document export both name it.
2026-11-16 15:55:08 -08:00
dotCooCoo 256b88f633 Preferences: the keyboard-focus tests check the focused control's description
description_frame now returns the description of the accessibility node
that has the keyboard focus, instead of the descriptions of every node.
The Units, General and Type keyboard-focus tests compare it with the
row's sentence, so they fail when the sentence is set on a node other
than the focused control.
2026-11-16 15:54:10 -08:00
el-j a0edcf73c4 Merge remote-tracking branch 'upstream/main' into fix/pdfx-transparency-reduction-6861 2026-11-17 00:42:30 +01:00
dotCooCoo feeab2e335 Preferences: the Transform Tools sentence names shearing too
The Transform Tools setting also controls the angle readouts of the
Shear and Reflect tools, so its description now says the size or angle
shows while you scale, rotate, shear or reflect art. Every catalog row
is updated to the new sentence.
2026-11-16 15:40:25 -08:00
dotCooCoo 79fdf113a5 Print: faint ink on paints marked to overprint is kept on PostScript plates
A PostScript plate drew an overprinting fill, stroke or character as
nothing when it put up to half a percent of that plate's ink down, so a
faint ink was lost from the plate. Now only a paint with no ink on the
plate is drawn as nothing, on PostScript and PDF plates alike. The one
exception is a color that counts as 100% black and is not linked to a
spot swatch or Registration: on a PostScript plate, up to half a percent
of another ink in it still counts as none, so a near black set to
overprint keeps the ink below it.
2026-11-16 15:38:42 -08:00
dotCooCoo 31c53a8658 Print: spot plates follow the swatch art links to by name
A fill, stroke or gradient stop links to a swatch by name, and the first
swatch of that name is the one it prints from. The plate list added a spot
plate for every spot swatch, so a spot swatch after a process swatch of the
same name got a plate that printed nothing, while art linked by that name
separated as process. The plate list now takes only the first swatch of
each name.

A spot swatch named Cyan, Magenta, Yellow or Black had no plate of its own
and printed nothing on the process plate of its name. Art linked to it now
prints its tint on that process plate, as PDF and EPS export write it, and
a gradient stop's own process plates print beside it.
2026-11-16 15:29:19 -08:00
dotCooCoo 7c33e1de77 Panels: read the selected object in place instead of copying it each repaint
first_selected and the Appearance panel's subject return the Arc the
document holds, and the Transparency panel caches that Arc. Brushes and
Image Trace borrow the node. The Transparency panel copies the object to
leave out its mask only when it draws the thumbnail again. Each panel
shows the same values as before.
2026-11-16 15:26:29 -08:00
dotCooCoo 3032f6e7ce Arc: Arc Segment Tool Options shows a picture of the arc as its options change
Double-clicking the Arc tool opens Arc Segment Tool Options, which now shows
the arc below Fill Arc and redraws it as the lengths, Reference Point, Type,
Base Along, Slope and Fill Arc change, ui.dialog.set included. The picture is
the arc shape.arc draws from the options OK sets, fitted into a 160 x 120 frame
with its proportions kept, in the current stroke (black when there is none),
filled with the current fill when Fill Arc is on, turned by General > Constrain
Angle, with a mark on the reference point. A gradient or pattern stroke or fill
shows as gray. OK still only sets the options and draws nothing; the click
dialog has no picture.
2026-11-16 15:26:24 -08:00
dotCooCoo 788ebb3961 Swatches: a user swatch named with a leading bracket dropped on Delete Swatch is deleted
Delete Swatch took dragged rows through the name-prefix filter of the
selection's click path, so a user swatch such as [Blue] dropped on the
button was ignored. The drop now keeps color groups and every swatch of
the document other than None and Registration, as swatch.delete does.
2026-11-16 15:23:35 -08:00
datatimp e300ca95f0 Merge branch 'fix/8241-panel-copy-cursor-on-windows' into fix/8217-layers-alt-drag-copy-cursor
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-16 18:19:32 -05:00
dotCooCoo bd64b45910 Merge main into feat/layers-drag-into-live-paint 2026-11-16 15:18:40 -08:00