Hi,
Exporting PDF or SVG files contains unnecessary shift of coordinates in
vector export. The pattern is displayed correctly in the viewer.
I attached a simple Gerber file to reproduce this bug in bug report #207 (
https://sourceforge.net/p/gerbv/bugs/207/).
I'm very sure that this bug is caused by the statement below in src/draw.c.
if (halfWidth < pixelWidth)
halfWidth = pixelWidth;
This doesn't make sense when exporting vector files, so I've commented out
here and my patch has worked fine for me. (I don't need to export image
files.)
A quick fix which came to mind first is to pass a flag to show if exporting
vector or image to gerbv_draw_amacro function. This flag can be passed
by gerbv_render_all_layers_to_cairo_target_for_vector_output.
Let me know your opinions. I'm willing to write and post a patch if needed.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gerbv-devel mailing list
Gerbv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gerbv-devel