From e0db4b1264c2d87b82092987dc4a5d0d803f352c Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Tue, 3 Nov 2009 20:53:52 -0500 Subject: [PATCH] Added simple envelope support Added several envelope sizes to page-sizes.xml. Also reversed the rotation direction when printing rotated labels to better match the orientation of envelope feeders. --- src/print.c | 6 +++--- templates/paper-sizes.xml | 11 +++++++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/print.c b/src/print.c index 2006e0ee..7707eb3a 100644 --- a/src/print.c +++ b/src/print.c @@ -509,15 +509,15 @@ print_label (PrintInfo *pi, /* of the current label */ cairo_translate (pi->cr, x, y); - clip_to_outline (pi, label); + //clip_to_outline (pi, label); cairo_save (pi->cr); /* Special transformations. */ if (label->rotate_flag) { gl_debug (DEBUG_PRINT, "Rotate flag set"); - cairo_rotate (pi->cr, -M_PI/2.0); - cairo_translate (pi->cr, -width, 0.0); + cairo_rotate (pi->cr, M_PI/2.0); + cairo_translate (pi->cr, 0.0, -height); } if ( reverse_flag ) { cairo_translate (pi->cr, width, 0.0); diff --git a/templates/paper-sizes.xml b/templates/paper-sizes.xml index b0210210..2d5ac68f 100644 --- a/templates/paper-sizes.xml +++ b/templates/paper-sizes.xml @@ -31,11 +31,11 @@ - + - + @@ -63,4 +63,11 @@ + + + + + + + -- 2.39.5