At that point, it is easier to generate the SVG directly, which gives you full control, plus you're now only dealing with the quirks of Resvg, and not with the quirks of Yoga _on top of_ the quirks of Resvg.