[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PSPP printing
From: |
John Darrington |
Subject: |
Re: PSPP printing |
Date: |
Wed, 9 Jan 2013 19:28:31 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
OK, Try the following patch as a first round:
Apply the patch. Run a simple procedure to get somthing in the output window.
Then print the output
window and send me what's in standard out.
I like to save trees and use the "print to file" option.
J'
diff --git a/src/output/cairo.c b/src/output/cairo.c
index cd8f0b0..ffdd83c 100644
--- a/src/output/cairo.c
+++ b/src/output/cairo.c
@@ -223,6 +223,11 @@ parse_font (struct output_driver *d, struct string_map
*options,
/* Parse KEY as a font description. */
string = parse_string (opt (d, options, key, default_value));
desc = pango_font_description_from_string (string);
+
+ if (string_map_find (options, "printing"))
+ printf ("%s:%d Font: %s %p\n", __FILE__, __LINE__,
+ string, desc);
+
if (desc == NULL)
{
error (0, 0, _("`%s': bad font specification"), string);
@@ -237,8 +242,22 @@ parse_font (struct output_driver *d, struct string_map
*options,
/* If the font description didn't include an explicit font size, then set it
to DEFAULT_POINTS. */
if (!(pango_font_description_get_set_fields (desc) & PANGO_FONT_MASK_SIZE))
- pango_font_description_set_size (desc,
- default_points / 1000.0 * PANGO_SCALE);
+ {
+ if (string_map_find (options, "printing"))
+ printf ("%s:%d Setting default size %g\n", __FILE__, __LINE__,
+ default_points / 1000.0 * PANGO_SCALE);
+
+ pango_font_description_set_size (desc,
+ default_points / 1000.0 * PANGO_SCALE);
+ }
+
+
+ if (string_map_find (options, "printing"))
+ {
+ printf ("%s:%d Size is %d; absolute %d\n", __FILE__, __LINE__,
+ pango_font_description_get_size (desc),
+ pango_font_description_get_size_is_absolute (desc));
+ }
return desc;
}
diff --git a/src/ui/gui/psppire-output-window.c
b/src/ui/gui/psppire-output-window.c
index d1d7e89..9ff1574 100644
--- a/src/ui/gui/psppire-output-window.c
+++ b/src/ui/gui/psppire-output-window.c
@@ -1082,6 +1082,11 @@ create_xr_print_driver (GtkPrintContext *context,
PsppireOutputWindow *window)
string_map_insert_nocopy (&options, xstrdup ("bottom-margin"),
c_xasprintf ("%.2fmm", bottom_margin));
+ string_map_insert (&options, xstrdup ("printing"), "yes");
+
+ printf ("%s:%d Width: %g; Height: %g\n", __FILE__, __LINE__,
+ width, height);
+
window->print_xrd =
xr_driver_create (gtk_print_context_get_cairo_context (context), &options);
On Wed, Jan 09, 2013 at 10:05:42AM +0100, Harry Thijssen wrote:
I am in for it. So lets give it a try. I can test it with a HP
printer, but at the end we might need more testers because of the
printer specific file which is generated.
Have fun
2013/1/9 John Darrington <address@hidden>:
> Somebody I know with Windows also had this problem and showed it to me.
>
> I think if we're going to solve this, we will have to start the cycle of
> adding diagnostics, build, inspect, verify --- like we did with the last
> windows issue.
>
> I don't have regular access to a windows machine, so will have to rely on
> others to do that part.
>
> Do we want to give it a try?
>
> John
>
> On Tue, Jan 01, 2013 at 08:31:14PM +0100, Harry Thijssen wrote:
> Hi all
>
> I tried to find out about the issue of microscoping small printing
> when the result is printed from the output window. It appears that a
> printer specific print file is generated. On my systems it is for a
HP
> printer. So I don't have an idea how I could change the microcoping
> small printing in reasonable printing. Anybody an idea?
>
> Have fun.
>
>
> >> HELP please
> >>
> >> I am just a user (used to use SPSS) and am not an expert
> >> I am using pspp.exe0.7.9.g8d97f8 with Windows 7 32 bit
> >>
> >> I am not able to print the output from any analysis.
> >
> > What happens when you export your output to pdf, html or even txt
and
> > print these files?
> >
> >> It appears in microscopic form in the top left of the page using
a brother
> >> HL 2140 laser printer
> >>
>
> _______________________________________________
> pspp-dev mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/pspp-dev
>
> --
> PGP Public key ID: 1024D/2DE827B3
> fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
> See http://keys.gnupg.net or any PGP keyserver for public key.
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iEYEARECAAYFAlDtL6YACgkQimdxnC3oJ7PnQgCeMlcLFB69uD2thdMgRpYfCEqE
> ZG0An0ik5OotQGJ4nmuUcsdks57zuerZ
> =eOu1
> -----END PGP SIGNATURE-----
>
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://keys.gnupg.net or any PGP keyserver for public key.
signature.asc
Description: Digital signature
- Re: PSPP printing, Harry Thijssen, 2013/01/01
- Re: PSPP printing, John Darrington, 2013/01/09
- Re: PSPP printing, Harry Thijssen, 2013/01/09
- Re: PSPP printing,
John Darrington <=
- Re: PSPP printing (Round 2), John Darrington, 2013/01/10
- Message not available
- Message not available
- Message not available
- Message not available
- Re: PSPP printing (Round 3), John Darrington, 2013/01/11
- Message not available
- Re: PSPP printing (Round 3), John Darrington, 2013/01/11
- Re: PSPP printing (Round 3), Ben Pfaff, 2013/01/11
- Re: PSPP printing (Round 3), Ben Pfaff, 2013/01/11