mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-09 20:03:56 +00:00
The editing copy of a PDF-compatible .ai left out the Graphic Styles panel's styles and objects' links to them, with a warning. They are now written as art styles: - The panel's styles come first in %AI9_BeginArtStyles and are listed in its order in %AI9_BeginArtStyleList after the palette, with their fills, strokes, transparency and effects. Fills and strokes may have transparency and effects of their own, and a style may also hold Warp, Transform, Free Distort, Pucker & Bloat, Twist, Zig Zag or Gaussian Blur. A style of an object's own holds the same effects as before. - A path, compound path or group linked to a graphic style names it when it has the style's appearance, the style is written, and the reader reads that style on that object. Objects linked to a new document's styles keep their link: the panel is written for them too. - The writer reads each style back with the reader before it writes it. A style with gradient or pattern fills, with anything the reader does not read back, with a name another style has, with a name over 1,024 bytes or past 4,096 styles is left out with a warning. Other links are left out with a warning, and a panel with no style written warns that it opens with a new document's styles. No graphic style is written on a large canvas, with a warning. Graphic styles: https://helpx.adobe.com/illustrator/desktop/special-effects-styles/apply-graphic-styles/apply-graphic-styles.html Tests: the round trip of the panel's styles and of links; each effect a style can hold; the forms written; the list's limits; duplicate names; an empty panel; links left out; a style's opacity at the written precision; a large canvas; Twist and Transform on an object with no link; a link to a style whose Transform moves the outline, with and without an opacity mask; the reader's reading of warp numbers; fuzz cases for damaged written styles. Docs: docs/file-format-parity.md.