CairoSVG
CairoSVG copied to clipboard
SVG text paint-order = "stroke" is not supported
If you try this code:
<svg id="floor2" class="floor" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="-33250 -7500 800 250">
<style type="text/css">.ruler-text.metric{fill:#000; font:107pt arial; text-anchor:middle; alignment-baseline:middle; paint-order: stroke; stroke: #ff0; stroke-width: 10pt; stroke-linecap: butt; stroke-linejoin: miter}</style>
<text transform="translate(-32852.4 -7353.87) rotate(0)" class="ruler-text metric">2.66m</text>
</svg>
You'll end up with:
instead of:

PR #217 fixes that.
paint-order has been added in SVG 2.0 and CairoSVG doesn't have a clear plan to support this new version :smile:. By the way, this change seems harmless and there's no reason not to include it. Thank you!
Oh, I didn't realize that #217 and #218 were conflicting. I have to check this.
@liZe Yes, I have it merged in my computer but had to split in order to produce 2 different PRs.
@liZe I fixed the conflict in the same PR and it should work now.