Type in a spot ink or a global process color was saved to the text
document as its process values alone (a /SimplePaint with key 0), so
the saved file opened with the type in a plain process color: off its
ink's plate on separations, and white type in a white ink on none.
Saving warned about it ("swatch links of its colors").
A run's fill or stroke now names (key 5 of a /CAITextPaint) an art
style of one paint, its fill alone on (`0 1 Xd`), whose paint is the
color as a path's fill writes it (`x`, `Xx`, `Xk`, or `Xs` for
Registration). That is the form the .ai reader takes the ink and the
tint from since the previous change; key 0 keeps the process values.
Each style is read back with the reader's own parser before it is
used, and a link is kept only when it gives the same swatch and tint.
Those runs no longer count among the attributes of type left out;
a link to a process swatch that isn't global still does, and the
warning's text now says so.
Test in crates/eps/src/ai_editing/tests.rs. The parity doc has the row.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The color a one-paint style holds for type was kept whenever its last
paint was a fill color with a swatch. A stroke color set before the
fill's still linked the type, and the style's `Xd` wasn't looked at, so
a style with its fill off gave its color too.
The style now holds the color only when its `Xd` turns on the fill
alone (`0 1 Xd`) and nothing sets a stroke's color or pattern, before
or after the fill's. No file I have writes a style any other way, so
this changes no real file; the pattern a style holds for type is read
as before.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Type set in a spot ink or a global process color opened as a plain
process color: right on screen, but on separations it printed on the
process plates, and white type in a white ink on none.
In the text document a character's fill or stroke is a color (key 0)
and the name of an art style (key 5). For a color with a swatch, key 0
keeps only its process values at its tint; the name and the tint are in
the style, a style of one paint (`c m y k (name) tint x`, `Xx`, `Xk`),
always its fill's, for a stroke too. The reader took key 0 alone.
The style reader now keeps that paint (`ArtStyle::simple_color`), the
way it already keeps a one-paint style's pattern, and the type takes it
in place of key 0's color: the color at its tint, linked to its swatch.
The styles' named colors make their swatches with the art's (after the
art's colors, before the header's custom colors), so type and art in
one ink share a swatch, and a color that takes a free name is linked by
that name. Registration is linked to the built-in swatch.
`Texts::with_patterns` and the fields beside it are renamed to
`with_paints`, since they now hold both.
Tests in crates/eps/src/import/tests_native.rs, ate.rs and
ai/style/tests.rs. The parity doc has the row.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
XMP updates flush their destination folders on Unix. The host records completed writes and refreshes open readers before reporting a folder flush error. XMPFile retains its pending packet for retry.
Keep XMP file buffers in native state and release them at the file run boundary. Count registered namespaces and expanded metadata against the heap limit. Reset marked readers after updates and allow failed library setup to retry.