Commit Graph
16974 Commits
Author SHA1 Message Date
dotCooCoo be5c81f366 Merge main into chore/craft-libs-exr-deep-offsets 2026-11-16 18:45:23 -08:00
dotCooCoo f84fc7a6ae Packaging Tools: Fold Preview's White inside stays white beside a swatch named #ffffff
The built-in White inside is stored as an empty value instead of #ffffff, so a
swatch named #ffffff no longer replaces it. ui.foldPreview takes an empty
inside for white; a swatch's name still comes before a #rrggbb that reads the
same.
2026-11-16 17:44:20 -08:00
dotCooCoo 9ddfc2e00f Path Precision Tools: shallow crossings are placed where the paths meet
The crossing search splits curves into pieces until each lies within
0.0001 pt of its chord, and takes the place where two chords cross.
Where a line meets an arc at under a degree, that place sat up to
0.025 pt along the arc from the real crossing, so Trim at Crossings,
its hover and Add Points at Crossings cut there.

Each place found is now moved onto both curves with Newton's method on
a(s) = b(t). The move is kept only when it stays within both segments,
ends closer than 1e-9 pt, and moves no farther than a piece bent by
0.0001 pt can shift a crossing at that angle; otherwise the place stays
as it was.
2026-11-16 17:42:19 -08:00
dotCooCoo 6dae0b77e5 Merge main into feat/webp-lossy-quality 2026-11-16 17:39:20 -08:00
dotCooCoo c07dabaa1d Merge main into feat/help-search-commands-first 2026-11-16 17:38:54 -08:00
dotCooCoo d99ac76c0e Merge main into feat/app-bar-search-field 2026-11-16 17:38:41 -08:00
dotCooCoo 4b2868bd07 .ai save: the editing copy keeps live blends
The editing copy of a PDF-compatible .ai wrote every blend as its steps.
Blends the .ai reader opens live are now written live:

- The blend's key objects and, when it has a spine of its own, its
  spine are written as a group on hidden lines, each key's dictionary
  naming it a key and its id and the spine's naming it the spine. Its
  steps follow as a group, then the Path Blends record of its spacing
  (Smooth Color, Specified Steps, Specified Distance with its distance),
  orientation (Align to Page, Align to Path) and keys, then its
  dictionary (name, text wrap options, variables) and its opacity and
  blending mode as a group's after its end. A spine edited on the canvas
  is written with each key's anchor on the key. A replaced spine is
  written with an anchor where each key sits, so it opens with those
  anchors and lays out the same steps.
- Each blend is checked with the reader's own reading before it is
  written, and the blends together against the objects the reader lays
  out in one file. Written as their steps with a warning: blends with
  easing, a color shift or start points; with effects, an appearance or
  an opacity mask of their own; of objects other than paths, compound
  paths and groups, of clipping groups, of more than 62 key objects, of
  hidden keys or keys holding a blend; of keys with geometry or
  Pathfinder effects or a group's own fills and strokes, which the
  editing copy writes as their result; of keys the editing copy would
  change otherwise (empty paths or subpaths, paths and compound path
  members of several subpaths, several fills or strokes, strokes a plain
  line can't draw, dashes of more than 64 lengths, hidden fills or strokes, fills or strokes other than
  a color, in a Lab color or with transparency or effects of their own,
  effects, opacity masks); blends where one key has a fill or stroke of
  no paint or a stroke of no width and another has one that draws;
  blends whose spine has more than one part;
  blends whose step count is close to where rounding the written
  coordinates and colors changes it; blends the reader would open with
  other settings or not as drawn; blends inside objects with geometry or
  Pathfinder effects or a group's own fills and strokes; blends in
  opacity masks, pattern tiles, symbols and art cut to a clipping object
  or nested eight levels deep in art written in place of other objects;
  blends whose art would pass the most objects the reader reads; and
  every blend on a large canvas.
- The steps set their own transparency and lock and hidden state after
  the hidden lines, for readers of the printed form.

Each construct is written in the form the .ai reader reads (blend.rs,
read/document.rs blend roles, read/containers.rs end_blend, read/ops.rs
XP and transparency), and every object written counts toward the
reader's object limit as the reader counts it. The record's orientation
word and a blend with no spine part are read as #8243 reads them.

Blend Options, key objects and spines:
https://helpx.adobe.com/illustrator/desktop/manage-colors/apply-transparency-and-blending/blend-options-overview.html
https://help.adobe.com/archive/en_US/illustrator/cs5/illustrator_cs5_help.pdf#page=260

Tests: the round trip of blends of each spacing and orientation, with
no spine of their own, an edited spine and replaced curved spines,
named, at half opacity, hidden and locked, with text wrap options, of
compound paths, of groups and of 62 keys, each laying out the same steps
as the document's blend; the record's words (Align to Path's angle
included) and the dictionaries; the steps' own state after the hidden
lines; the same bytes on a second write; each case written as its
steps, with as many steps as are drawn, where they are drawn (among
them Specified Distance 0.03 pt from where its count changes, on a
spine of 200 segments, which comes back live on a spine of two); blends in
pattern tiles, opacity masks, symbols, art cut to a clipping object and
eight levels down; the object limit; the reader's blend limit; a large
canvas; fuzz cases for damaged written blends.

Docs: docs/file-format-parity.md.
2026-11-16 17:31:04 -08:00
dotCooCoo 5b5b3cf75c Merge main into feat/packaging-fold-preview 2026-11-16 17:27:15 -08:00
BFlat db23daa318 Merge pull request #8059 from dotCooCoo/fix/find-font-escape-dropdown
Find Font: Escape over an open list closes only the list
2026-11-17 08:20:54 +07:00
BFlat edb2e447ce Merge pull request #8084 from dotCooCoo/fix/issue-8041
Fix #8041: the Swatches panel shows no Recent Colors or Swatch Tiles heading
2026-11-17 08:20:46 +07:00
BFlat 95aede8b49 Merge pull request #8195 from dotCooCoo/feat/trim-crossings-knife-flyout
Trim at Crossings: the tool is in the Scissors tool's flyout and shows a knife cursor
2026-11-17 08:20:36 +07:00
BFlat c8870d5bd6 Merge pull request #7998 from dotCooCoo/feat/palette-compact-rows
Command Palette: compact rows in a shorter list that scrolls and says how many matched
2026-11-17 08:20:27 +07:00
BFlat 3e1a6f7e51 Merge pull request #8072 from dotCooCoo/fix/ai-editing-perceptual-stops
AI editing data: a Perceptual gradient is written with the stops on its curve
2026-11-17 08:20:18 +07:00
BFlat 5232789973 Merge pull request #8076 from dotCooCoo/fix/export-screens-pdf-bleed
Export for Screens: Include Bleed keeps a PDF page's TrimBox at the artboard
2026-11-17 08:20:09 +07:00
BFlat 84a8d781fc Merge pull request #8043 from dotCooCoo/fix/issue-8024
Eyedropper: Escape ends a gradient stop's or Key Color's pick and returns to the previous tool
2026-11-17 08:20:01 +07:00
BFlat 3547934a09 Merge pull request #8186 from dotCooCoo/perf/variables-panel-rows-per-revision
Variables: the panel builds its rows once per document version
2026-11-17 08:19:53 +07:00
BFlat 1b14abbcdb Merge pull request #8080 from dotCooCoo/perf/curved-stroke-edges
Render: wide curved strokes draw their rims closer to the curves
2026-11-17 08:19:45 +07:00
BFlat b99a5cf798 Merge pull request #8091 from dotCooCoo/fix/issue-8047
Selection: a press on members picked with Group Selection drags only them
2026-11-17 08:19:37 +07:00
BFlat 7c65af31ce Merge pull request #8067 from dotCooCoo/feat/align-3d-preview-bounds-1302
Use Preview Bounds: Extrude & Bevel, Revolve, Inflate and Rotate are measured by their 3D art
2026-11-17 08:19:29 +07:00
BFlat 2510109da1 Merge pull request #8100 from dotCooCoo/perf/brush-targets-dedup-set
Brushes: brush_targets drops repeated paths with a set instead of a linear search of its output
2026-11-17 08:19:20 +07:00
BFlat 79d2536e8e Merge pull request #8089 from dotCooCoo/fix/issue-8063
Part of #8063: Dimension tool points snap to drawn dimensions and show anchor and path labels
2026-11-17 08:19:12 +07:00
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 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