Properly handle line breaks for text.

This commit is contained in:
yrriban 2025-02-28 02:40:29 -05:00
parent 978cddca61
commit 56d4f3012e

3
dcc
View file

@ -50,8 +50,7 @@ case $1 in
exit $? exit $?
;; ;;
"text") "text")
read TEXT LABEL="$(printf "MAP%s: %s\nUV-Max Demo" "${MAPSTR}" "$(cat -)")"
LABEL="$(printf "MAP%s: %s\nUV-Max Demo" "${MAPSTR}" "${TEXT}")"
convert -background transparent -fill white -font "League-Spartan-Bold" -strokewidth 10 \ convert -background transparent -fill white -font "League-Spartan-Bold" -strokewidth 10 \
-stroke "srgb(176,0,0)" -interline-spacing -10 -pointsize 64 -trim +repage -border 5 \ -stroke "srgb(176,0,0)" -interline-spacing -10 -pointsize 64 -trim +repage -border 5 \
-bordercolor transparent -gravity NorthWest \ -bordercolor transparent -gravity NorthWest \