summaryrefslogtreecommitdiff
path: root/dot/local/bin/text2png
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2018-06-12 16:53:25 -0400
committerAndrew Cady <d@jerkface.net>2018-06-12 16:55:02 -0400
commitb1645568b2c0d1b5450ff7fb04e4ef2c71d352cd (patch)
tree19b4be28ed4e8b55ce56e00956d26c6cb928942a /dot/local/bin/text2png
parent097abc2307be83290743b15045ecf5a1f03637af (diff)
improvements
Diffstat (limited to 'dot/local/bin/text2png')
-rwxr-xr-xdot/local/bin/text2png3
1 files changed, 2 insertions, 1 deletions
diff --git a/dot/local/bin/text2png b/dot/local/bin/text2png
index ada7780..a435914 100755
--- a/dot/local/bin/text2png
+++ b/dot/local/bin/text2png
@@ -12,6 +12,8 @@ $desired_height = 1296;
12 12
13# Font size in points (72 points per inch). This does not determine the size of 13# Font size in points (72 points per inch). This does not determine the size of
14# the image, because the image density is defined in terms of it. 14# the image, because the image density is defined in terms of it.
15
16# Probably this should be changed so density is fixed and font size varies.
15$font_size = 72; 17$font_size = 72;
16$margin = $font_size; 18$margin = $font_size;
17 19
@@ -44,7 +46,6 @@ $offset = sprintf '+%i+%i', ($character_size) x 2;
44$output = 'png:-'; 46$output = 'png:-';
45 47
46system <<END; 48system <<END;
47set -x;
48convert \\ 49convert \\
49 -size $initial_image_size \\ 50 -size $initial_image_size \\
50 xc:white \\ 51 xc:white \\