From: Jim Evins Date: Wed, 4 Nov 2009 01:53:52 +0000 (-0500) Subject: Added simple envelope support X-Git-Tag: glabels-2_3_0~142 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e0db4b1264c2d87b82092987dc4a5d0d803f352c;p=glabels 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. --- 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 @@ + + + + + + +