shrhdk / text-to-svg

Convert text to SVG path without native dependence.
Other
964 stars 131 forks source link

转换中文时不对,utf-8? #31

Closed hktalent closed 6 years ago

hktalent commented 6 years ago

转换中文时不对,utf-8? svg = textToSVG.getSVG("鸔 鸕 鸖 鸗 鸘 鸙",{ // x:0,y:0, fontSize:72, // kerning:true, // letterSpacing:0, anchor:'center' });

jeffontheground commented 6 years ago

What is the font file parsed to the textToSVG ? Maybe your font file doesn't contain those uncommon word. and what is the error? Please describe it more.

BTW, to show respect for others, please remove commented code and translate your question even if I could read Simplified Chinese.

hktalent commented 6 years ago

@jeffontheground china char fonts