SVG. Get paths from text

Is it possible to transform SVG text like:

<g transform="translate(185 185)">
    <text font-family="'Wednesday'" font-size="40" font-weight="100"
          style="stroke: none;  stroke-width: 1; stroke-dasharray: ; fill: rgb(0,0,0); opacity: 1;"
          transform="translate(-78.5 -28.48)">
        <tspan x="0" y="41.1" fill="rgb(0,0,0)">Test text</tspan>
    </text>
</g>

      

for SVG paths using javascript? Doesn't depend on font availability.

thank

+3


source to share


1 answer


opentype.js can take a font and split it along the way. It's svg or canvas agnostic



+2


source







All Articles