bulia byak wrote:
On 8/3/06, Ulf Erikson <ulferikson@...400...> wrote:
Yes, I have a transparency related fix as well, but it is a bit more involved and bulia had some issues with it.
Yes, sorry I dropped the ball here. We agreed to do a function which gives the visible opacity of an object, right? Please keep reminding me so I don't forget about it again :)
Right. Will do so.
For the rest, transparency use is as limited as the regular colours and many of the limitations are shared with the postscript exporter that I based the pdf exporter on (i don't know enough about inkscape or pdf internals to handle it). For instance, there are no gradients for strokes, and there are no elliptic or excentric gradients for fills.
Elliptic gradients with transparency did work for me on fill.
True. I must have misread the release notes where it says "no eccentric elliptic gradients". As you say, elliptic gradients do work, but also eccentric gradients do work. The issue is that they only work as long as the cross is inside the circle, and.. in the libnr code I found the math to ensure this.
Could you please try this patch? Between "double r = rg->r.computed;" and "if (pbox && SP_GRADIENT(rg)->units == ..." and the following lines (once in ps.cpp and twice in pdf.cpp). Seems to do it for me: --- NR::Coord const df = hypot(f[NR::X] - c[NR::X], f[NR::Y] - c[NR::Y]); if (df >= r) { f[NR::X] = c[NR::X] + (f[NR::X] - c[NR::X] ) * r / (float) df; f[NR::Y] = c[NR::Y] + (f[NR::Y] - c[NR::Y] ) * r / (float) df; } ---
Maybe we can make a list of features that don't work and discuss possible solutions? Most of it will be equally interesting for the cairo based exporter. Bug 1170322 (Clippath does not work in PS export), for instance. I have no idea how clips and masks are exposed to extensions.