dwg2svg quality and fonts

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
User avatar
andrew
Site Admin
Posts: 9036
Joined: Fri Mar 30, 2007 6:07 am

dwg2svg quality and fonts

Post by andrew » Thu Feb 13, 2014 10:34 am

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?

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

Re: dwg2svg quality and fonts

Post by andrew » Thu Feb 13, 2014 10:45 am

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 453 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 528 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 551 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.

Post Reply

Return to “QCAD 'How Do I' Questions”