Commit Graph
11138 Commits
Author SHA1 Message Date
BFlat 990c8cc916 Merge pull request #8233 from dotCooCoo/feat/save-for-web-optimize-to-size
Save for Web: Optimize to File Size picks the settings that bring the image under a typed size
2026-11-17 17:28:44 +07:00
BFlat 567485aa12 Merge pull request #8263 from dotCooCoo/feat/print-ink-spot-to-process
Print: Document Ink Options converts one chosen spot ink to process
2026-11-17 17:28:34 +07:00
yoriswind f6fd818cc9 Merge main and preserve Brush Key Color canvas picking 2026-11-17 01:21:23 -08:00
yoriswind 63ccff703e Merge main and preserve Dimension properties documentation 2026-11-17 01:18:45 -08:00
dotCooCoo 219ad4fbf0 Color Guide: renaming, deleting or unspotting the base spot color keeps the link right
A Swatch Options rename of the spot color base keeps it the base, also
as a command.batch step, and so do an Undo and a Redo of the rename.
Deleting the swatch or its color group, merging it into another, making
it a process color or closing its document ends the link, so a later
spot color of the same name does not become the base until it is chosen
again. The base keeps the color it showed.

A batch's Activate Document, New, Open, Close and Move Document steps
are followed, so steps in another document leave the link alone. When
the swatch goes in a way the panel does not follow, the link waits for
an Undo or Redo, and the next other command ends it.
2026-11-17 01:12:55 -08:00
jmvergesandClaude Opus 5.5 f3299f377d docs: the first File formats row names the saved editing copy's limits (#868)
It still said Illustrator's editing data isn't written, while the other
two File formats rows give what a saved `.ai`'s editing copy leaves out.
It now has their words. Scores and estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 08:35:23 +00:00
jmvergesandClaude Opus 5.5 462fb38359 docs: the first File formats row names the saved editing copy's limits (#868)
It still said Illustrator's editing data isn't written, while the other
two File formats rows give what a saved `.ai`'s editing copy leaves out.
It now has their words. Scores and estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 08:35:23 +00:00
jmvergesandClaude Opus 5.5 07f9948a08 docs: note dashes aligned to corners (#8196) in the File formats rows and evidence
The area rows and the evidence list name the change and its tests, as
AGENTS.md asks of a change that lands. Scores and estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 08:35:23 +00:00
jmvergesandClaude Opus 5.5 0d22c0e384 docs: note Art brushes in Tints of a swatch's color (#8200) in the File formats rows and evidence
The area rows and the evidence list name the change and its tests, as
AGENTS.md asks of a change that lands. Scores and estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 08:35:23 +00:00
jmvergesandClaude Opus 5.5 76892e8abf docs: the parity status line and revision row give the copy pick's limits (#8087)
As the roadmap now does: the pick compares the first 512 characters, and
without the PDF part's widths, or with no installed copy that sets them
all, it is the one before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 08:34:34 +00:00
Taha-Mahmoodi c655f9ccc0 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/gaps.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-17 12:34:33 +04:30
yoriswind df92153483 Merge upstream main and retain independent progress documentation 2026-11-16 23:59:16 -08:00
jmvergesandClaude Opus 5.5 5b55952641 docs: the status line names the aligned-dash strokes that keep their look (#8196)
Type with dashes aligned to corners, and strokes past the 256 checks an
import makes, keep their drawn look; the status line said only that such
strokes come in live where they draw as their look.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:43:35 +00:00
jmvergesandClaude Opus 5.5 c04ffd5f3f docs: roadmap: the copy pick's fallback and its 512 characters (#8087)
The status line and the revision history said type is set in the copy
that sets its characters at the PDF part's widths. The pick compares the
first 512 characters, and without those widths, or with no copy that sets
them all, it is the one before; both entries now say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:43:35 +00:00
jmvergesandClaude Opus 5.5 2a755bfb6a docs: roadmap M4 Files row notes #8200
The status line, the M4 Files row and the revision history name the
change, as AGENTS.md asks of a change that lands. Estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:53 +00:00
jmvergesandClaude Opus 5.5 972c024362 docs: an Art brush in Tints of a swatch's color comes in brushed (.ai import)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:53 +00:00
jmvergesandClaude Opus 5.5 f9b4313027 docs: the first File formats row names the saved editing copy's limits (#868)
It still said Illustrator's editing data isn't written, while the other
two File formats rows give what a saved `.ai`'s editing copy leaves out.
It now has their words. Scores and estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:52 +00:00
jmvergesandClaude Opus 5.5 074d7f9fac docs: roadmap M4 Files row notes #8239
The status line, the M4 Files row and the revision history name the
change, as AGENTS.md asks of a change that lands. Estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:52 +00:00
jmvergesandClaude Opus 5.5 911efc9549 .ai import: a stack's pattern the drawn look places two ways keeps the look
The check that a stack's patterns are each its own took each style item's
pattern once, but not that the drawn look places it one way:
`placed_paints` keeps a pattern's first placement, so a look filling with
one pattern at two placements, for a style that names it once, came in
with the first placement for both. `placed_paints` now also notes each
pattern the look places otherwise than its first placement, and a stack
with such a pattern keeps its drawn look. The same placement again, as a
compound path's look has for each subpath, is still one.

Test `a_look_placing_a_stacks_pattern_twice_keeps_the_drawn_look` (two
placements keep the look; the same one twice comes in as the path).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:52 +00:00
jmvergesandClaude Opus 5.5 3ae72821b4 docs: a path or compound path filled with a pattern through its art style comes in with it (.ai import)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:51 +00:00
jmvergesandClaude Opus 5.5 e463d06579 docs: roadmap M4 Files row notes #8196
The status line, the M4 Files row and the revision history name the
change, as AGENTS.md asks of a change that lands. Estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:50 +00:00
jmvergesandClaude Opus 5.5 500f583110 .ai import: the reads of a file apart from its layers spend none of the layers' checks
Besides the reader of its layers, a file whose layers come from its PDF
part is read again over all of its data for its artboards (once more for
the page scale), its variable library, its swatches, brushes, graphic
styles and symbols. Each of those readers started with every envelope
check (`MAX_CHECKED`) and every aligned-dash check (`MAX_DASH_CHECKS`)
an import has, so such a file could draw several times the strokes the
limit allows.

- The artboard and variable-library readers start with no checks
  (`reader_aside`): neither depends on how a stroke or an envelope draws.
- The swatch, brush, style and symbol readers, which need only what
  comes before the first layer, make no more checks once they reach it
  (`Reader::defs_only`). What they read is unchanged in files that write
  their definitions before their layers, as saved files do (symbols after
  the first layer aren't read at all). A pattern tile or brush art defined
  after the first layer is still read, without checks: it draws the same,
  and keeps its drawn art where it could have come in live.

Definitions read before the layers (pattern tiles, brush art, symbols)
are still checked by each of those readers within the limit.

Test `the_reads_apart_from_the_layers_check_no_aligned_dashes`, which
counts the checks made (`DASH_CHECKS_MADE`, in tests only).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:50 +00:00
jmvergesandClaude Opus 5.5 2093d5aa52 docs: dashes aligned to corners come in live where they draw as their look (.ai import)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:50 +00:00
jmvergesandClaude Opus 5.5 04e226902e docs: roadmap M4 Files row: the envelope's drawn art paints nothing too (#8154)
The row said an envelope of type that paints nothing opens live, which
reads as if the type painting nothing were enough. It also takes drawn
art that paints nothing, as the other docs say.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:49 +00:00
jmvergesandClaude Opus 5.5 bd2e5ed737 docs: roadmap M4 Files row notes #8154
The status line, the M4 Files row and the revision history name the
change, as AGENTS.md asks of a change that lands. Estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:49 +00:00
jmvergesandClaude Opus 5.5 1f974b5cd9 docs: the evidence for envelopes of type that paint nothing (#8154) states its limit
When nothing paints the shapes aren't compared, so a fill added to the
type later may bend it unlike the unpainted outlines the file saved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:49 +00:00
jmvergesandClaude Opus 5.5 00598bfa2a docs: the first File formats row names the saved editing copy's limits (#868)
It still said Illustrator's editing data isn't written, while the other
two File formats rows give what a saved `.ai`'s editing copy leaves out.
It now has their words. Scores and estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:48 +00:00
jmvergesandClaude Opus 5.5 33942295e5 docs: note envelopes of type that paint nothing (#8154) in the File formats rows and evidence
The area rows and the evidence list name the change and its tests, as
AGENTS.md asks of a change that lands. Scores and estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:48 +00:00
jmvergesandClaude Opus 5.5 b08135cb66 docs: an envelope of type that paints nothing opens live (.ai import)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:48 +00:00
jmvergesandClaude Opus 5.5 ae08b3f3d0 docs: roadmap M4 Files row notes #8128
The status line, the M4 Files row and the revision history name the
change, as AGENTS.md asks of a change that lands. Estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:47 +00:00
jmvergesandClaude Opus 5.5 7f30dab913 docs: the first File formats row names the saved editing copy's limits (#868)
It still said Illustrator's editing data isn't written, while the other
two File formats rows give what a saved `.ai`'s editing copy leaves out.
It now has their words. Scores and estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:47 +00:00
jmvergesandClaude Opus 5.5 6d920ea6ec docs: note grouped clipping paths in a compound path (#8128) in the File formats rows and evidence
The area rows and the evidence list name the change and its test, as
AGENTS.md asks of a change that lands. Scores and estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:47 +00:00
jmvergesandClaude Opus 5.5 6d3c56ccb1 docs: clipping paths grouped in a compound path (.ai import)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:47 +00:00
jmvergesandClaude Opus 5.5 c7ab67d6c5 docs: roadmap M4 Files row notes #8106
The status line, the M4 Files row and the revision history name the
change, as AGENTS.md asks of a change that lands. Estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:46 +00:00
jmvergesandClaude Opus 5.5 90ba03faa9 docs: the first File formats row names the saved editing copy's limits (#868)
It still said Illustrator's editing data isn't written, while the other
two File formats rows give what a saved `.ai`'s editing copy leaves out.
It now has their words. Scores and estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:46 +00:00
jmvergesandClaude Opus 5.5 88c2c3558f docs: note type clipping masks (#8106) in the File formats rows and evidence
The area rows and the evidence list name the change and its tests, as
AGENTS.md asks of a change that lands. Scores and estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:46 +00:00
jmvergesandClaude Opus 5.5 f71fe2e5d8 .ai import: type that ends a clipping group without a clipping path clips it
Illustrator writes a clipping mask of type from the text document as a
clipping group (`q` ... `Q`) with no clipping path (`W`), the text object
(`/AI11Text`) last. The reader took only `W` paths (and legacy type in
rendering modes 4 to 7) as clipping paths, so it read such a group unclipped:
its art painted past the letters, and where the layers then differed too much
from the page the file opened as its page.

- `Reader::end_container` records each clipping group with no clipping path
  whose last object is a text slot (not the type a look draws) in
  `Structure::type_clips`, by the group's id. The group is still read as it is:
  the slot is filled later.
- `clip_by_type` (crates/eps/src/import/ai/read.rs) moves the type to the
  front as the group's clipping path once its slot became one text object that
  is still the group's last object. A slot left empty or filled with several
  objects (type and the strokes the page draws around it) leaves the group as
  read, unclipped, as before.
- The layers apply it after `fill_slots`; such type is never weighed as type
  the page doesn't draw (`MADE` is taken off), since the page shows it by what
  it clips. Envelopes of type apply it to their contents after `put_type`, so
  one opens live where its drawn art shows the clip (`WarpedType::type_clips`).

Measured on 224 garment files we own (used locally, never committed): 14 renders
change; 12 come closer to the file's own page (for example 15.7 % → 0.07 %,
26.5 % → 0.28 %, 58.5 % → 1.4 % of the page differing), one file has no PDF
content to compare with, and in one the texture inside a word changes along
the letters' edges (0.35 % → 0.56 %). Envelopes of type that open live stay at
185; no file opens another way and no note changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:46 +00:00
jmvergesandClaude Opus 5.5 40d1bef059 docs: roadmap M4 Files row notes #8087
The status line, the M4 Files row and the revision history name the
change, as AGENTS.md asks of a change that lands. Estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:44 +00:00
jmvergesandClaude Opus 5.5 931b0cd469 docs: the first File formats row names the saved editing copy's limits (#868)
It still said Illustrator's editing data isn't written, while the other
two File formats rows give what a saved `.ai`'s editing copy leaves out.
It now has their words. Scores and estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:44 +00:00
jmvergesandClaude Opus 5.5 5f9017da2e docs: note the installed copy that sets the PDF part's widths (#8087) in the File formats rows and evidence
The area rows and the evidence list name the change and its tests, as
AGENTS.md asks of a change that lands. Scores and estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:44 +00:00
jmvergesandClaude Opus 5.5 546d274e6e .ai import: type takes the installed copy that sets its PDF part's widths
When several installed faces answer to a text document font record's
PostScript name and the record keeps no version (no key 5), type was set in
whichever copy loaded first. Two copies can share the PostScript name, family
and style and differ only in their widths (two releases of one font): the type
then set at other widths than the file's own page, and envelopes of it could
fail their drawn-art check. #6983 left this case out, as only the page's
widths tell such copies apart.

- `Opened::page_widths` (crates/pdf/src/page_widths.rs) reads the widths the
  pages give the characters of each font they set type in, from the font
  dictionaries alone and without importing any page: a simple font's
  `Widths` from `FirstChar`, a composite font's descendant's `W` under an
  `Identity-H`/`Identity-V` CMap, each code's character from the font's
  `ToUnicode` map or, for a simple font without one whose `Encoding` is
  `WinAnsiEncoding`, from that encoding (ISO 32000-1 9.6.2, 9.7.4.3, 9.10.3,
  Annex D.2), by `BaseFont` without its subset tag. Zero widths (codes a
  subset doesn't use) are left out; subsets that give a character two widths
  give none.
- Its cost is bounded by the file: each resource dictionary is walked once,
  however many pages and forms share it, within 65,536 entries for the whole
  file, 256 fonts and 4,096 forms; a width array that fonts share by
  reference is read once, and none past 4 MB of them; a `ToUnicode` map is
  parsed once for all the fonts that name it, and one over 256 KB decoded,
  or past 4 MB of maps in all (each charged at most what could be decoded
  of it), is left unread. `cid_ranges` reads a `W` list's values as it
  takes them instead of collecting the whole list. A font's widths are
  shared, not copied.
- `postscript_face` (crates/eps/src/import/text.rs) takes, among the faces
  of the record's name, the first that sets those characters (the first 512
  in code-point order) each within 1/1000 em. With no widths, one face, a
  version in the record, or no face that sets them all, the pick is the one
  before. The face found first is checked before any other is loaded, and
  the records of one name and version share their widths and their answer,
  so each font resolves once whatever the number of records.
- The widths reach the text document through `Structure::page_widths` and
  `Texts::with_page_widths`; the engine reads them once per open and passes
  them to `ai_layers_alone`, `AiLayers::with_page_widths` and `ai_alone_with`
  when it reads a `.ai`'s editing copy beside a PDF part (not for a
  placeholder page).
- `without_subset_tag` replaces two copies of the subset-tag strip in the PDF
  import, and `replacement` (a `ToUnicode` value that names no character) is
  shared with it.
- A fuzz target feeds hostile font dictionaries, `ToUnicode` maps and forms
  that draw themselves to the reader.

Measured on 224 users' files (used locally, never committed): 3 font records
in 3 files change copy, each now within 0.5/1000 em of its page; those 3
renders, and no others, change, all closer to the file's own page; envelopes
of type that open live go from 185 to 186, none fewer in any file; no file
opens another way.

Refs #6983

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:44 +00:00
dotCooCoo 30693f211b PDF/X: PDF/X-4 files carry xmp:MetadataDate, equal to xmp:ModifyDate
A PDF/X-4 export wrote xmp:ModifyDate and xmp:CreateDate in its XMP
metadata but no xmp:MetadataDate. The PDF/X-4 metadata edit now adds
xmp:MetadataDate next to xmp:ModifyDate, with the same value, and grows
the stream's /Length to match. When the export dates the file as modified
later, post::modification_date already rewrites every xmp:MetadataDate,
so the two dates stay equal.

PDF/X-1a, PDF/X-3, PDF/A and plain PDF exports are unchanged.
2026-11-16 23:41:52 -08:00
dotCooCoo 566d5263b9 Merge main into feat/ai-editing-data-meshes 2026-11-16 23:38:43 -08:00
dotCooCoo c61d429df2 Merge main into fix/ai-brush-mask-art 2026-11-16 23:36:04 -08:00
HassanKhan b12bacf3c8 Merge remote-tracking branch 'upstream/main' into fix-8015-pdf-text-fill-stroke
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-17 12:34:29 +05:00
BFlat b4d45f2b0d Merge pull request #8291 from dotCooCoo/fix/rasterize-choice-controls
Rasterize: Anti Alias and Background are dropdowns in the dialog
2026-11-17 14:32:35 +07:00
BFlat 6a2fa16cd1 Merge pull request #8289 from dotCooCoo/feat/ai-blends-in-editing-copy
.ai save: the editing copy keeps live blends
2026-11-17 14:32:25 +07:00
BFlat ed2bbe0a2f Merge pull request #8234 from datatimp/fix/8217-layers-alt-drag-copy-cursor
Layers panel: Alt shows the copy cursor while rows are dragged
2026-11-17 14:32:15 +07:00
dotCooCoo 10b33033ac Save PDF: the Summary is computed again when flattener presets, profiles or fonts change
The cached Summary's stamp now also includes the saved flattener presets, the loaded color profiles and the available fonts, so deleting the flattener preset the dialog names, or removing the profile it converts to, while the dialog stays open no longer leaves the Summary section and ui.pdfSummary.save showing settings that a fresh computation refuses.
2026-11-16 23:16:55 -08:00
HassanKhan 971b13843b PDF import: translucent fill-and-stroke type stays two objects (#8015)
A fill and a stroke at the same opacity below 1 were joined into one
type object whose opacity then applies to both together, losing the
darker overlap the file composites. stroke_filled now takes a stroke
only when the fill and the stroke are opaque.

An upright glyph filled and stroked was kept as an outline for the
reshaped-outline fallback while upright glyphs filled only were not;
it is no longer kept either, so such a line can't come in as the
outlines of its stroked glyphs alone.

Docs: the #8015 entries say what is left (translucent type, and a TJ
that starts a new line part way through).
2026-11-17 11:59:20 +05:00