Hi,
I am trying qcad and dwg2pdf to view and convert dwg files.
But there are 2 problems now.
1. Chinese text can not be shown correctly(??? or incorrect word) when font is not found.
2. Some dwg files are not shown.
Could you please tell me
1. Is there any setting for global font substitute to force all text(or missing font text only) to use substitute font.
2. Why does these dwg files are not shown?
Thanks,
Huachen
-----------------------
sample dwg files are in google drive
https://drive.google.com/file/d/0B9lnst ... sp=sharing
https://drive.google.com/file/d/0B9lnst ... sp=sharing
qcad: V3.15.5 on MAC OSX 10.11
dwg2pdf: V3.15.4 on Ubuntu 14.04
substitute font and other
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Re: substitute font and other
For font substitution, you can use the -font-substitution or -fs switch:
dwg2pdf -fs SimSun Arial -k -a -f -o ./TextNotCorrect.pdf ./TextNotCorrect.dwg
notshown.dwg contains a drawing which is located at around 38380000/3830000. However, there are also some objects close to 0/0, so when auto zoom fits the entire drawing on the paper, it becomes so tiny that it is invisible. You might want to load the file in QCAD and perform an auto zoom to see what the problem is.
dwg2pdf -fs SimSun Arial -k -a -f -o ./TextNotCorrect.pdf ./TextNotCorrect.dwg
notshown.dwg contains a drawing which is located at around 38380000/3830000. However, there are also some objects close to 0/0, so when auto zoom fits the entire drawing on the paper, it becomes so tiny that it is invisible. You might want to load the file in QCAD and perform an auto zoom to see what the problem is.
Re: substitute font and other
Hi Andrew,
Thanks a lot.
Thanks a lot.
Re: substitute font and other
Hi Andrew,
I have tried your command line on dwg2pdf (qcad3.15.5-pro), but the result is not same as expected.
The expected result is uploaded. Two problems:
1. Only part of objects are shown.
2. Chinese text is NOT correctly shown by your command line.
Could you please to help to check it?
Thanks,
Huachen
I have tried your command line on dwg2pdf (qcad3.15.5-pro), but the result is not same as expected.
The expected result is uploaded. Two problems:
1. Only part of objects are shown.
2. Chinese text is NOT correctly shown by your command line.
Could you please to help to check it?
Thanks,
Huachen
Re: substitute font and other
Thanks for the PDF. The file you have uploaded shows the block *PAPER_SPACE. dwg2pdf always outputs the block *MODEL_SPACE. Newer versions of dwg2pdf (and the other command line tools) offer a -block switch to specify which block should be output:
./dwg2pdf -block="*PAPER_SPACE" -l -a -n -f -o TextNotCorrect.pdf TextNotCorrect.dwg
The issue with the text codec should also be fixed meanwhile.
I've attached the output of the above command line with the current development version of QCAD.
./dwg2pdf -block="*PAPER_SPACE" -l -a -n -f -o TextNotCorrect.pdf TextNotCorrect.dwg
The issue with the text codec should also be fixed meanwhile.
I've attached the output of the above command line with the current development version of QCAD.
- Attachments
-
- TextNotCorrect.pdf
- (60.94 KiB) Downloaded 287 times