Open qarmin opened 2 months ago
Usvg dependency supports embedding text inside svg, but printpdf not
Svg used to test behavior
<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"> <circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" /> <text x="50" y="55" font-size="20" text-anchor="middle" fill="white">A</text> </svg>
Yeah, this is a pretty normal problem since PDF handles fonts / text specially. You'd have to first use a SVG library to convert the text to paths.
Usvg dependency supports embedding text inside svg, but printpdf not
Svg used to test behavior