Support paint-order for text
Librsvg supports the paint-order
property for shapes, but not for text. This should be a matter of modifying the text-drawing code to work in a similar way to the shape-drawing code, which is basically iterating the values.paint_order().targets
to see what to draw.
Some special things about text:
- Most text elements only have a
fill
but nostroke
; text doesn't have markers. - Text that only has a
fill
looks better if drawn frompangocairo::functions::show_layout()
- this uses the text renderer's own engine. - Text that has a
stroke
needs to be converted to a path first, and then that path is stroked.