For my glvg project i use gradient fills. Fills are applied using the stencil buffer e.g. first the shape is drawn in the stencil buffer next the fill is drawn over that.
Now that goes ok for not rotated fills on square shapes. But goes wrong with a rotated shape on a rectangular shape. (with and height are different).
So if i rotate a fill 90 degrees with and height will 'swap' making the fill not fill the entire shape. So somehow i need adjust sizes of the rotated fill so that it overlaps the shape again.
I have been puzzling with this for a while and so far i have not found a 'good enough' solution. If you have ideas on this let me know...