Support Chinese words?

Drop in here to discuss whatever you want.

Moderator: andrew

Post Reply
EddyLin
Registered Member
Posts: 2
Joined: Fri Aug 07, 2020 5:40 pm

Support Chinese words?

Post by EddyLin » Fri Aug 07, 2020 5:42 pm

I have test dwg2svg but I found all my Chinese words become ?????????.
Will you support Chinese words?

User avatar
andrew
Site Admin
Posts: 7436
Joined: Fri Mar 30, 2007 6:07 am

Re: Support Chinese words?

Post by andrew » Fri Aug 07, 2020 6:25 pm

Please attach or e-mail your DXF and SVG, so we can see if the problem is in the DXF, the SVG or the SVG viewer.

EddyLin
Registered Member
Posts: 2
Joined: Fri Aug 07, 2020 5:40 pm

Re: Support Chinese words?

Post by EddyLin » Sat Aug 08, 2020 6:21 pm

Due to the copy rights issue I have sent an email to [email protected]. Please help to solve my problem. Thanks.

User avatar
andrew
Site Admin
Posts: 7436
Joined: Fri Mar 30, 2007 6:07 am

Re: Support Chinese words?

Post by andrew » Mon Aug 10, 2020 8:44 am

The file uses fonts "romans" and "romanc", both don't define Chinese or other international glyphs.

For this file, I'd recommend the following options (substitute fonts):

Code: Select all

./dwg2svg -fs romans Arial -fs romanc Arial -f -o output.svg input.dwg
This is assuming that your system has an Arial font installed with support for Chinese glyphs.

To keep text as text in SVG add -g:

Code: Select all

./dwg2svg -g -fs romans Arial -fs romanc Arial -f -o output.svg input.dwg

Post Reply

Return to “Chat”