summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcos <cos>2015-01-25 22:13:20 +0100
committercos <cos>2015-01-25 22:13:20 +0100
commit209586b679ddf939d77ffa3238e2e8831667d854 (patch)
tree3cb366f7155044e319ff57e532dd3560cf81916e
parent927d4675325c119aa3f8f2eef5f65fb6b1127408 (diff)
downloadmat-209586b679ddf939d77ffa3238e2e8831667d854.zip
Rearrange printer limit values a little.
-rwxr-xr-xmat13
1 files changed, 6 insertions, 7 deletions
diff --git a/mat b/mat
index 509c269..642b110 100755
--- a/mat
+++ b/mat
@@ -269,13 +269,12 @@ sub print_label {
my $fontname = "/usr/share/fonts/truetype/freefont/FreeSans.ttf";
my $fontsize = 15;
- my $x_border = 35; # Obtained with papersize.sh
- my $y_border = 18;
- my $x_limit = 307;
- my $y_limit = 324;
- my $x_max = 307-35;
- my $y_max = 324-18;
- my $y_offset = 75;
+ my $x_border = 18; # Obtained with papersize.sh
+ my $y_border = 35;
+ my $x_limit = 324;
+ my $y_limit = 307;
+ my $x_max = $x_limit-$x_border;
+ my $y_max = $y_limit-$y_border;
my $qr_border = 4;