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.
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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.
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.
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).