Commit Graph
1035 Commits
Author SHA1 Message Date
bflatastic a87f042c7a combo: #8240
# Conflicts:
#	docs/file-format-parity.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 01:12:54 +07:00
bflatastic 1e19e9f2dd combo: #8197
# Conflicts:
#	docs/file-format-parity.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 01:12:47 +07:00
bflatastic 7987b81b3f combo: #8155
# Conflicts:
#	docs/file-format-parity.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 01:12:42 +07:00
bflatastic 123ed49734 combo: #8107
# Conflicts:
#	docs/roadmap.md
2026-11-19 01:12:38 +07:00
bflatastic ff7870ba7f combo: #6060 2026-11-19 01:12:31 +07:00
bflatastic 2a83263f14 combo: #6048 2026-11-19 01:12:31 +07:00
bflatastic 99280586fd combo: #6040 2026-11-19 01:12:30 +07:00
bflatastic da922c49e3 Merge main into #8240
# Conflicts:
#	docs/file-format-parity.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 01:06:40 +07:00
bflatastic eab8a25837 Merge main into #8197
# Conflicts:
#	docs/file-format-parity.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 01:06:29 +07:00
bflatastic 56b56463aa Merge main into #8155
# Conflicts:
#	docs/file-format-parity.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 01:06:24 +07:00
bflatastic f00809219f Merge main into #8107
# Conflicts:
#	docs/file-format-parity.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 01:06:19 +07:00
bflatastic e5dbf5b0e8 Merge main into #6060
# Conflicts:
#	docs/file-format-parity.md
2026-11-19 01:05:42 +07:00
bflatastic 1c50930576 Merge main into #6048
# Conflicts:
#	docs/file-format-parity.md
2026-11-19 01:05:36 +07:00
bflatastic 69c9e2a6e6 Merge main into #6040
# Conflicts:
#	docs/file-format-parity.md
2026-11-19 01:05:24 +07:00
bflatastic 774e6e1127 Merge main into #6026
# Conflicts:
#	docs/file-format-parity.md
2026-11-19 01:05:18 +07:00
dotCooCoo 6cd6d22167 Merge main into fix/print-overprint-gradient-zero-stops 2026-11-18 07:33:08 -08: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
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
dotCooCoo 9e059d6e99 Merge main into perf/ai-save-gradient-index 2026-11-17 22:38:32 -08: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 1dad5aeb75 Merge pull request #8472 from dotCooCoo/perf/ai-save-font-record-once
.ai save: resolve each run's font once per font
2026-11-18 13:04:34 +07:00
BFlat fb8e0ab455 Merge pull request #8454 from dotCooCoo/perf/ai-save-style-parse-once
.ai save: parse each art style text once per save
2026-11-18 13:04:25 +07:00
BFlat 01279f1d03 Merge pull request #8379 from dotCooCoo/perf/ai-texts-move-stories
PDF/.ai import: the text document reader moves its stories out instead of copying them
2026-11-18 12:56:39 +07:00
BFlat fbbd55458e Merge pull request #8355 from dotCooCoo/perf/ai-save-images-decode-once
.ai save: read each embedded image's pixels once a save
2026-11-18 12:56:04 +07:00
BFlat 4d3f9cbd08 Merge pull request #7365 from dotCooCoo/fix/ai-scatter-brush-art-upright
.ai import and save: Scatter brush art comes in turned over, as Art brush art does
2026-11-18 12:55:47 +07:00
BFlat 61d3190469 Merge pull request #8181 from dotCooCoo/feat/area-type-first-baseline-em-box
Type: Area Type Options First Baseline offers Em Box Height
2026-11-18 10:22:23 +07:00
dotCooCoo 46dd113eaa EPS import: token and search read a string in place instead of copying it
`token` on a string copied everything left in the string before scanning
one object, and `search` and `anchorsearch` copied both strings before
comparing them. A program that walks a string by what each call leaves
copied the rest of it on every call. All three now read the strings in
place and release the borrow before the scanned object is checked
against the budget and before the results are pushed. Results, errors
and the operations charged against the budget are the same as before.

Walking a 512 KiB string takes 16 ms instead of 518 ms with `token` and
1.0 ms instead of 27 ms with `search` (release build on Linux under load
from other builds, median of 7 alternating runs); on a 4 KiB string the
difference is under 0.1 ms.

Tests in tests_strings.rs compare each operator with the copying code on
the same operands (stack, error and operations left after every call),
check that the results see later writes to the string, and check that
no string is copied.
2026-11-17 18:47:53 -08:00
dotCooCoo ef366997ec .ai save: keep at most 4,096 parsed style texts per save
The writer kept every style text it checked, with its parse, until the
save ended, including texts the reader does not accept. A gradient style
placed on each object's outline is often a different text per object,
so memory grew with the number of objects checked.

The first 4,096 texts, up to 8 MiB of text, are kept parsed. Past that,
only the last text checked is kept, so the brush check that follows an
object's check reuses its parse, and other texts are parsed again when
checked. The written file is unchanged.
2026-11-17 14:51:14 -08:00
dotCooCoo dd810ea4bb .ai save: resolve each run's font once per font
Saving a .ai file resolves the font of every run of type twice: once
for its font record and once to check that the font comes back as
itself. Each resolution looks the face up, reads its axes and name
table, and scans the loaded faces by PostScript name, so a document
with tens of thousands of runs in a few fonts repeated the same
lookups for every run.

The text document now keeps what each style's font fields (family,
style, version and Variable Font settings, each setting by the bits of
its value) resolve to for the whole save, and reuses it while the font
database's generation is unchanged. A font added or loaded during the
save resolves it again. The font set is still searched and filled as
before, so its order, indices and rollback are unchanged. The output
is unchanged.

- Tests: a save resolves as many fonts for one row of type as for
  four; the program, header, warnings and private data are the same as
  with every run's font resolved again (many fonts, threaded type,
  envelopes of type, and type taken back when an envelope is written as
  its art); each resolved record and check equals the uncached one for
  static and variable fonts, settings outside the axis range, not a
  number, +0 and -0, and a missing family, and a value resolved before
  the font database changed is resolved again. An ignored test times
  the save of 10,000 point type objects in three runs over four fonts.
2026-11-17 14:30:14 -08:00
dotCooCoo a0228dd460 Brushes: Scatter Brush Options has Hue Jitter, a per-copy hue turn
A scatter brush takes a Hue Jitter amount from 0 to 180 degrees (0 by
default). Each copy turns the hue of its solid fills and strokes, type
included, by its own amount up to that far either way, after the
colorization. The amounts come from the stroke's path and the brush
name, so a stroke draws the same colors on every redraw, after Save and
Open, and in export. Copies keep their places, sizes and rotations.

A color turns in its own model (RGB in the HSB of its values, CMYK over
C, M and Y with K kept, Lab by turning a and b). White, black and grays
stay as they are, and a symbol instance in the art turns only its stain.
A brush at 0 draws its copies in the colors the colorization gives them
and saves no hue_jitter key; a brush without the key reads as 0.

- brush.options takes hue_jitter, and brush.get shows it for every
  scatter brush. Brush Options shows a Hue Jitter field (ui.brushOptions
  field hueJitter) with rows in every catalog.
- The .ai editing data writer does not write the amount, so a jittered
  brush is left out of the Brushes panel there and reported, as other
  brushes that would open with other settings are.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-17 14:24:19 -08:00
dotCooCoo 7142cca3e9 .ai save: parse each art style text once per save
Saving a .ai file checks every art style it writes by reading it back
with the reader's style parser. Each object check parsed its style text
twice (once to read the appearance and once for the outline check), a
brushed style a third time, and a linked object first searched every
written style by name and copied its text. With thousands of objects
on a few styles, the same text was parsed tens of thousands of times.

The writer now keeps each style text's parse for the whole save, a
text the reader does not parse included, and reads it on each object:
the object's own gradient, the outline check, the brush check and the
appearance comparison still run per object. The own gradient is applied
to a copy of the parse, and that copy is the compared appearance; the
outline and brush checks read the kept parse.
Panel styles are found by their place in the written list. The output
is unchanged.

- import: parse_art_style, read_parsed_style and parsed_moves_with
  split the parse from the reading; BrushesRead::style_reads takes the
  parse.
- Tests: the parse count of a save does not grow with the number of
  objects on the same styles; the program, header, warnings and private
  data are the same as with a parse at every check; one parse read on
  two objects gives each its own gradient. An ignored test times the
  save of 40 graphic styles, 20,000 linked rectangles and 5,000 paths
  with their own Outer Glow.
2026-11-17 13:52:24 -08:00
dotCooCoo 8c343ea357 Merge main into perf/ai-texts-move-stories 2026-11-17 13:30:45 -08:00
dotCooCoo b709400711 Merge main into perf/ai-save-gradient-index 2026-11-17 12:39:03 -08:00
dotCooCoo 0ab5451f78 .ai save: gradient and pattern definitions are found by name and by gradient
Each gradient fill or stroke, and each gradient swatch, looked for its
definition by comparing its gradient with every definition written so
far, and each new definition's name was checked against every other
name. A document with thousands of distinct gradients spent most of the
editing data's time in these comparisons.

The writer now keeps the definitions' names in a map and the
definitions no swatch names under a key made from every field of their
gradient (a zero of either sign giving the same key). Each candidate
under a key is still compared in full, the first in definition order
is used, and a style that isn't written frees the names and keys of
the definitions it added. Pattern definitions are found by name the
same way. The written program is unchanged, byte for byte.
2026-11-17 12:34:44 -08:00
BFlat b458f8f757 Merge pull request #7254 from dotCooCoo/fix/ai-xa-working-rgb
.ai save: Lab colors and type paints are written in the working RGB space
2026-11-18 03:21:30 +07:00
BFlat aa8ef006da Merge pull request #7446 from dotCooCoo/fix/ai-transform-guide-reach
.ai import: guides past an object's art keep the drawn look under Transform and Free Distort
2026-11-18 03:20:32 +07:00
dotCooCoo 527d97bf7f Merge main into fix/ai-scatter-brush-art-upright 2026-11-17 12:20:28 -08:00
BFlat 3bdc7400a3 Merge pull request #8045 from dotCooCoo/fix/ai-legacy-perceptual-gradient
Legacy .ai: write Perceptual gradients with the stops on their curve
2026-11-18 03:19:43 +07:00
dotCooCoo 987f8572c4 Print: an overprinting gradient's paper-white padding at a hard end stop keeps the ink below
When two stops share an end's offset, Level 2's stepped bands pad past
that end with the end stop's color and a Level 3 shading pads with the
color of the stretch next to it. The plate clip now decides whether the
padding is paper white by the color the painter in use draws, so a
paper-white padding no longer knocks out the ink below at Level 2, and
an inked one is no longer drawn over the ink below at Level 3 where the
shading pads with paper white.
2026-11-17 12:03:28 -08:00
dotCooCoo 556e1552d8 Print: an overprinting gradient keeps the ink below where it puts none on PostScript plates
A PostScript plate has no blending modes, so an overprinting gradient
whose stops mix zero and nonzero ink of a plate was drawn whole on it,
and its paper-white part knocked out the ink below.

On a plate, the EPS writer now clips an overprinting gradient to where
it puts the plate's ink down. Linear, radial and diamond gradients leave
out the stretches between paper-white stops and the padding past a
paper-white end stop. Conic gradients leave out their paper-white
wedges, and freeform gradients leave out their paper-white cells (masked
at Level 3, clipped at Level 2). Fills, strokes (within, along and
across) and characters are covered, on process and spot plates. Where
the gradient puts ink down it is drawn as before, and a gradient with
ink everywhere is written unchanged.

On PostScript plates, a stop or point of an overprinting gradient whose
color counts as black, with up to half a percent of another ink, now
puts none of that other ink down, as a solid fill of that color already
does. PDF plates are unchanged.
2026-11-17 11:02:04 -08:00
dotCooCoo f3fa4e0a17 PDF/.ai import: the text document reader moves its stories out instead of copying them
Texts::read copied the stories, the default styles, the paragraph
defaults and the frames out of the parsed text document and then
dropped the document. It now looks every required path up first,
reads the styles, Kinsoku sets and fonts from the whole document, and
then moves those four parts out. Every document that read before reads
to equal values, and every one that did not still does not.

Reading a synthetic editing copy with 2,000 point-type stories
(1.8 MB) takes a median of 60 ms of CPU time instead of 109 ms (7
alternating runs each, one process). The gain matters on documents
with a lot of type.
2026-11-17 10:26:17 -08:00
dotCooCoo 57601ec0a4 .ai import: pattern fills in brush art turn over with the art
A Scatter or Art brush's art is read turned over, and the tiles of its
pattern fills now turn over with it, so they keep their place on the
art. The version 7 pattern test reads a Scatter brush's tile moves in
the file's own space (y up), as the art now is.
2026-11-17 09:57:58 -08:00
dotCooCoo 6f12103147 .ai import: Scatter brush art turns over with its unlinked opacity masks
Scatter brush art is read turned over, as Art brush art is. The turn now
goes through the same helper as Art brushes, so the art of opacity masks
that don't move with their objects is turned over too and stays lined up
with the art. Fixes the "Unlinked spray" case of
scatter_and_art_brush_mask_art_round_trips.
2026-11-17 09:45:03 -08:00
dotCooCoo 2733c8c85c Merge main into fix/ai-scatter-brush-art-upright 2026-11-17 09:41:16 -08:00
jmvergesandClaude Opus 5.5 02555b2f95 Merge main (36b5a5920) into fix/ai-dashes-aligned-to-corners
Conflicts in docs (the status lines, the changelog rows, the M4 Files row
and the File formats rows): main's entries and this branch's are both
kept, each once. In crates/eps/src/import/ai.rs main's brush re-export
(now with `turn_over as turn_brush_art_over`) and this branch's
test-only `DASH_CHECKS_MADE` re-export are both kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 17:10:38 +00:00
jmvergesandClaude Opus 5.5 518301e848 Merge main (36b5a5920) into fix/ai-pattern-fill-in-an-art-style
Conflicts in docs only (the status lines, the changelog rows, the M4 Files
row and the File formats 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-17 17:10:15 +00:00
jmvergesandClaude Opus 5.5 e344e510d6 Merge main (36b5a5920) into fix/ai-envelope-of-type-that-draws-nothing
Conflicts in docs only (the status lines, the changelog rows, the M4 Files
row and the File formats 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-17 17:10:15 +00:00
jmvergesandClaude Opus 5.5 9f372756ed Merge main (36b5a5920) into fix/ai-type-clipping-mask
Conflicts in docs only (the status lines, the changelog rows, the M4 Files
row and the File formats 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-17 17:10:14 +00:00
dotCooCoo a36ab077f6 Merge main into perf/ai-save-images-decode-once 2026-11-17 09:09:11 -08:00
dotCooCoo b4cd6b6fa0 .ai save: read each embedded image's pixels once a save
The .ai writer kept only the image it read last, so a document that
placed two images in turn decoded each again at every placement. The
writer now keeps every image it reads during a save, by the address of
its data and its MIME type, up to 256 MiB of samples and 256 images,
with the image read last kept beside them when they are full. The file
written is unchanged; the tests compare the whole output and warnings
with the old one-image policy.

Two 2048 x 2048 images placed in turn 25 times each, release build,
thread CPU time, median of 7 alternating runs: 3774 ms with 50 decodes
before, 748 ms with 2 decodes after.
2026-11-17 09:03:45 -08:00