Font substitution option(-fs) on "dwg2pdf" not functional

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
ogata1
Registered Member
Posts: 1
Joined: Fri Mar 17, 2017 7:02 am

Font substitution option(-fs) on "dwg2pdf" not functional

Post by ogata1 » Fri Mar 17, 2017 7:22 am

Hi,

I am using qcad pro 3.16.5(linux-x86_32) and dwg2pdf to view and convert dwg files.
But there are one problem now.

Japanese text can not be shown correctly(???) when used Font substitution option(-fs).

Command is following:
./dwg2pdf -platform offscreen -fs Unicode Standard -block=\"*PAPER_SPACE\" -f -n -d -a -l -m 10 -o test.pdf test.dwg

dwg file is following:
https://drive.google.com/file/d/0B5wlDs ... sp=sharing

Could you please tell me why.

Thanks.

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

Re: Font substitution option(-fs) on "dwg2pdf" not functional

Post by andrew » Fri Mar 17, 2017 10:59 am

Thanks for your report. I've issued a bug report at:
http://www.qcad.org/bugtracker/index.ph ... sk_id=1559

Note that you will likely want to substitute fonts Standard and RomanS with a true type font like "Arial" since even the CXF font "Unicode" only contains a subset of Japanese / Chinese glyphs.

Also the order of parameters would be:

-fs <font to substitute> <font to use instead>

For example:
./dwg2pdf -platform offscreen -fs romans Arial -fs standard Arial -block=\"*PAPER_SPACE\" -f -n -d -a -l -m 10 -o test.pdf test.dwg

Post Reply

Return to “QCAD 'How Do I' Questions”