Page 1 of 1

dwg2svg quality and fonts

Posted: Thu Feb 13, 2014 10:34 am
by andrew
From a QCAD user:
The conversion quality [of dwg2svg] is low (Resolution low and drawing is bright and in black and white)

Also missing fonts or Hebrew encoding or UTF-8 and how i can change the font the conversion is using?

Re: dwg2svg quality and fonts

Posted: Thu Feb 13, 2014 10:45 am
by andrew
The conversion quality [of dwg2svg] is low (Resolution low
Please note that unlike bitmap files, SVG files have by definition no fixed resolution (i.e. they are 'scalable vector graphics' = SVG).

Perhaps the SVG viewer you are using displays SVG files smaller than desired. You might want to try Inkscape, a free application to view and edit SVG files.
drawing is bright and in black and white)
Depending on your SVG viewer, very thin black lines may be displayed as light gray lines. This effect is part of a rendering technique that is called anti-aliasing.
The output should not be black/white but resemble the same colors that are used in the input. Perhaps you can attach a file for testing or send it to us via e-mail?
Also missing fonts or Hebrew encoding or UTF-8
QCAD uses the fonts that are available on the operating system.

I've attached a simple example DXF file with the outputs.

Input:
hebrew.dxf
(77.52 KiB) Downloaded 461 times
Without the -g switch, texts are exported as paths:
dwg2svg -a -e 1.5 -c 0.5 -o ./hebrew.svg ./hebrew.dxf
Output:
hebrew.svg
(24.26 KiB) Downloaded 538 times
The -g switch exports texts as SVG text entities:
dwg2svg -a -e 1.5 -c 0.5 -f -g -o ./hebrew_g.svg ./hebrew.dxf
Output:
hebrew_g.svg
(676 Bytes) Downloaded 562 times
how i can change the font the conversion is using?
With the -p switch, the same fonts as in the input file are used. Without -p, texts are exported as paths.