Dear Svenn,
> I wonder if it is possible to make an option to add a few pixels to
> the automatic bounding box in all directions to make sure that all
> items are output properly on the target device. I currently manually
> place a bounding box to get the svg export nice in a gtkwidget
> (zim-wiki) There is probably a bit of anti-aliasing when gtk converts
> the svg into an internal format (maybe png) and all xcircuit objects
> that are on the automatic boundary box get "cut" off making them less
> nice to look at for a pedantic soul like me. Maybe a parameter or two
> to the svg command to add offsets to the existing borders when
> exporting.
There is a line in svg.c:977
#define PMARGIN 6 /* Pixel margin around drawing */
Given my limited understanding of the SVG format, it may not work
like I expect it to, or it may not be enough margin (given your
comments, I expect it is my misunderstanding. This parameter only
shows up in the "viewBox=" line in the SVG file header. Is there any
way that you can manipulate the SVG output file header to get the
margins you want? If so, I can correct the xcircuit SVG output to
match it.
Regards,
Tim
+--------------------------------+-------------------------------------+
| Dr. R. Timothy Edwards (Tim) | email: [email protected] |
| Open Circuit Design, Inc. | web: http://opencircuitdesign.com |
| 22815 Timber Creek Lane | phone: (301) 528-5030 |
| Clarksburg, MD 20871-4001 | cell: (240) 401-0616 |
+--------------------------------+-------------------------------------+
_______________________________________________
Xcircuit-dev mailing list
[email protected]
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev