lishu / vscode-svg2

A vscode svg langauge support extension
MIT License
200 stars 10 forks source link

<img> view not working for svg that has chinese. also not working when export png #157

Closed tonny008 closed 1 year ago

tonny008 commented 1 year ago

if svg has chinese text. for example:

<svg width="556" height="90" xmlns="http://www.w3.org/2000/svg">
    <text font-family="PingFangSC-Light, PingFang SC" font-size="48" font-weight="300" fill="#fefefe">
      <tspan x="20" y="80">您好</tspan>
    </text>
</svg>

view shows:

image

actually export png is working. but you need to reset zoom to 100% before exporting. imoo, this might be another bug^

ecodeUriComponent is used when export , while escape is used in <img> view. I think this is the problem