fskpf/svg2roughjs

Font size doesn't work properly with dimensionless unit

jroessel opened this issue · 1 comments

Perhaps only via CSS. Sample image:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" height="401.89pt" width="414.28pt" version="1.0">
<a transform="translate(6.4286 12.143)" stroke="#000" stroke-dasharray="none" stroke-miterlimit="4" stroke-width="1.5">
<path opacity=".89326" stroke-linejoin="miter" d="m197.66 91.345c59.2-12.441 113.1-96.922 149.59-90.172 43.19 7.9886 26.97 119.2 55.13 149.02 228.58 242 3.04 207.1-27.78 222.4-50.83 25.23-9.77 82.7-69.59 109.74-53.5 24.18-61.64-120.24-133.7-202.2-39.76-45.93-162.99-120.45-163.89-166.65-.9590-48.787 117.95-3.33 190.24-22.135z" fill-rule="evenodd" stroke="#000" stroke-linecap="butt" stroke-miterlimit="4" stroke-dasharray="none" stroke-width="2" fill="#ade675"/>
</a>
<text style="writing-mode:lr-tb;text-anchor:start;text-align:start;" line-height="100%" font-weight="normal" xml:space="preserve" font-size="40px" font-style="oblique" font-stretch="normal" font-variant="normal" y="319.33591" x="404.78406" font-family="Bitstream Vera Sans" fill="#000000"><tspan x="404.78406" y="319.33591">V</tspan></text>
<path d="m362.86 488.08a38.571 35.714 0 1 1 -77.15 0 38.571 35.714 0 1 1 77.15 0z" fill-rule="evenodd" stroke-linejoin="round" fill-opacity=".25140" stroke-linecap="butt" transform="matrix(1.4924 0 0 1.6118 -199.22 -521.5)" stroke="#000019" stroke-dashoffset="0" stroke-miterlimit="4" stroke-dasharray="9.00000009, 3.00000003" stroke-width="1.9343" fill="#00a700"/>
<text style="writing-mode:lr;text-anchor:start;text-align:start;" line-height="100%" font-weight="normal" xml:space="preserve" font-size="40" font-style="oblique" font-stretch="normal" font-variant="normal" y="290.17288" x="249.92949" font-family="Bitstream Vera Sans" fill="#000000"><tspan x="249.92949" y="290.17288">p</tspan></text>
<path d="m167.14 447.36a6.4286 6.4286 0 1 1 -12.85 0 6.4286 6.4286 0 1 1 12.85 0z" fill-rule="evenodd" stroke-linejoin="round" stroke-linecap="butt" transform="matrix(.59322 0 0 .59322 188.09 -.87934)" stroke="#000" stroke-dashoffset="0" stroke-miterlimit="4" stroke-dasharray="none" stroke-width="4" fill="#000"/>
</svg>
ygra commented

Seems to be resolved.