Depending on the order the gradients are added this can result in the gradient being rendered in the opposite direction.
Created attachment 3467 [details] [review] Fix and partial support for multistop. The attached patch fixes the problem in the same way it is done in cairo-pattern.c and adds support for multiple stops at the same time. The multistop part is however flawed. It assumes that the stops are evenly spaced, which of course is not correct. This can be corrected using PDF's stiching funtions (Type 3) quite easyly. I will provide an additional patch as time permits.
Nice work, thanks. I've committed your patch with a few stylistic changes. It's a obvious improvement over what's there now, but as you say, we still need to handle non-uniformly spaced color stops. If want to take a stab at that, that'd be great. Thanks again.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.