mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-25 10:17:02 -06:00
The version 7 .ai writer wrote a radial gradient's highlight (Bh) only when the gradient had a focal point off its center. A centered radial gradient, such as an SVG radialGradient without fx and fy, was written Bb, Bg, f, BB with no Bh. Every radial instance in the Adobe Illustrator File Format Specification version 7.0, which the writer follows, has one, 0 0 0 0 Bh for a centered highlight (sections 3.5.5, 3.5.6 and 9.3). #2687 reports that the reference app draws such a circle in its outer color. The writer now writes Bh in every radial instance, 0 0 0 0 Bh at the center. A focal point past the radius, which an elliptical gradient written circular can have, is written on the circle, so its x and y offsets agree with the fraction 1 written after them (section 3.5.5). Linear instances are unchanged. The result was not checked in the reference app.