delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to geda-user-bounces using -f |
X-Recipient: | geda-user AT delorie DOT com |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; |
d=gmail.com; s=20120113; | |
h=mime-version:in-reply-to:references:date:message-id:subject:from:to | |
:content-type; | |
bh=rEX82qYBkaX089YLHUWtfrghl1u4wl3dVnernDBvHqg=; | |
b=aPeORisQeejfNgEzzbB2ZL1iP4/4nPY+pZE3fXW9ZBLnRMa+zLwkhsxcp8ysrSkmKQ | |
ziGmNajS8R8sJ4xaxhQVHkZzJm1eOHCZQwhEnn/Oq5EuwYxpCb+9RAZqB6KtOcC23w80 | |
/p0SKSxluUHSi6AZprlOP39lW+n7D+1ZE67nns5tJI8AYQn2MwId1/FCFpT6zKSrYphi | |
HjFCLMtHqug/RyyewQIQ7UlI6HiFDyQtxmXSQI2Q6tiLcqmI1px/yZbvG2lbJQyuSdwo | |
DvSvJ3YiiGb7oGzqSuvrJninlDZkoB61APhcXs7MGzdmvx37peDNA1pQSICvPb5LzE2W | |
OHRQ== | |
MIME-Version: | 1.0 |
X-Received: | by 10.220.163.3 with SMTP id y3mr10563771vcx.7.1397326270254; Sat, |
12 Apr 2014 11:11:10 -0700 (PDT) | |
In-Reply-To: | <1397322739.772.8.camel@AMD64X2.fritz.box> |
References: | <CAOFvGD4MCEk4qUkyDtrPG1+oCz5c0p2PZgpQ6RAgVurBMyonDQ AT mail DOT gmail DOT com> |
<1397322739 DOT 772 DOT 8 DOT camel AT AMD64X2 DOT fritz DOT box> | |
Date: | Sat, 12 Apr 2014 14:11:10 -0400 |
Message-ID: | <CAOFvGD6m=FZJtO7GfuO20S6+BX3h3UhfGFowN0uSmOHukuUz0A@mail.gmail.com> |
Subject: | Re: [geda-user] Print monochromatic schematic? |
From: | Jason White <whitewaterssoftwareinfo AT gmail DOT com> |
To: | geda-user AT delorie DOT com |
Reply-To: | geda-user AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | geda-user AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
On Sat, Apr 12, 2014 at 1:12 PM, Stefan Salewski <mail AT ssalewski DOT de> wrote: > On Sat, 2014-04-12 at 12:09 -0400, Jason White wrote: >> Is there any way currently to print schematic pages monochrome? > > You may be able to select black&white in your printer dialog. Sadly it is a gray-scale only printer, no option for that. > For gschem 1.8.2 we have > > cat /usr/share/gEDA/system-gschemrc > > ; output-color string > ; > ; Controls if output (postscript) is color (enabled) or black/white > (disabled) > ; > (output-color "disabled") > ;(output-color "enabled") > > Maybe there are (more) similar options in gschem 1.9.x > I pasted (output-color "disabled") into my local gafrc file using the gSchem 1.9.1 release. It does day it loaded the RC file however it does not effect print operation. I took a look at the source code and the function In x_print.c: x_print_draw_page on line 139 (ish), take and argument is_color. Forcing this value to zero causes monochromatic printing as desired. Looking at the source reveals two problems. First hadling of color vs mono printing is not consistent between the three functions below. As far as I can tell you cannot actually invoke x_print_export_pdf and x_print_export_pdf_page from the gui as I tried exporting PDFs and PDF pages and only draw_page__print_operation was called. Second, when the view is set to black and white in gSchem CFG_KEY_PRINTING_MONOCHROME is not being set in the global project configuration. Also, it seems that w_current->toplevel->image_color is depreciated yet still compiles? hmm... Below are the Functions "that print" in x_print.c and the ways they determine if the project is monochrome In x_print.c function on line 220 (ish): draw_page__print_operation is_color = !eda_config_get_boolean (cfg, CFG_GROUP_PRINTING, CFG_KEY_PRINTING_MONOCHROME, NULL); In x_print.c function on line 338 (ish): x_print_export_pdf is_color= w_current->toplevel->image_color In x_print.c function on line 273 (ish): x_print_export_pdf_page is_color = !eda_config_get_boolean (cfg, CFG_GROUP_PRINTING, CFG_KEY_PRINTING_MONOCHROME, NULL); Okay, so that brings up a question I would like to make a patch to fix this printing issue. However, I cannot find the file and related functions which are called from the the menu View->Dark/Light/BW where the color scheme is set. Does anyone have any pointers? -- Jason White
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |