delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/05/11/06:51:15

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
To: geda-user AT delorie DOT com
Subject: [geda-user] Best way to make grid visible during print or export in gschem
X-PHP-Originating-Script: 0:rcube.php
MIME-Version: 1.0
Date: Mon, 11 May 2015 13:54:55 +0300
From: Anton Dubniak <twister AT tfsoft DOT org DOT ua>
Organization: TFSoft
Message-ID: <7edc0961353f1c224421d86c5d33d401@tfsoft.org.ua>
X-Sender: twister AT tfsoft DOT org DOT ua
User-Agent: Roundcube Webmail/1.0.3
Reply-To: geda-user AT delorie DOT com

Greetings,

I need to get my schematics in vector format (svg or eps) with a visible 
mesh grid. As far as I know, this is not possible without modifying the 
sources (am I wrong?). So, I conducted a mini-investigation and figured 
out that grid drawing functions is a part of gschem GUI. They are absent 
in gaf tool and libgedacairo.

Right now I solved my problem quickly and dirty by copying 
draw_mesh_grid_region() and draw_mesh() from gschem/x_grid.c to 
gaf/export.c and calling them from gaf's export_draw_page(). But code 
duplication is the bad thing to do.

So, my question is: if visible grid in exported documents is a nice 
feature to have, where is the right place for grid drawing functions?

Thanks

-- 
Best regards,
Anton Dubniak (twister AT tfsoft DOT org DOT ua)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019