mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-13 09:39:52 +00:00
In the text document of a .ai's editing copy, a character's fill (key 53) or stroke (key 54) is a paint with a colour under key 0 and, under key 5, the name of an art style of the editing data. For a pattern swatch, key 0 is black and the pattern is only in that style: a style of one paint (/SimpleStyle) that paints with `(name) ... [matrix] p`. The reader took key 0 alone, so type painted with a pattern came in black. The art style reader now keeps the pattern of a style that is one paint, and the import places it as a path's pattern fill would be (its matrix in art space; the files' own pages tile such type with it), by the style's name. A run whose fill or stroke is on and names such a style takes the pattern, in the type's text space, so its tiles stay where the document has them. A pattern the file doesn't define or can't place, a key 5 that isn't a string, and a style of any other paint keep the colour as before. A style that also has filters gives no pattern for type, and a pattern that can't be placed in the type's text space keeps the colour. A .ai saved again writes such type as outlines with a warning, as it already does for any type with pattern paint (#5965). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>