I did find a solution for the main problem: see the end of this question.
I have a text-file which contains:
┌────┬────┬────┬────┐ │ A♦ │ K♥ │ Q♠ │ J♣ │ └────┴────┴────┴────┘
I convert it with:
convert -interline-spacing 0 -size 250x100 -gravity center -fill black -font Liberation-Mono -density 96 -pointsize 12 caption:"$(<brokenLines.txt)" brokenLines.png
This works reasonably well and produces:
But this has two problems:
- There are gaps in the vertical lines.
- I would like the diamond and heart to be red.
How would I implement this?
I found a solution for the first and main problem, use:
Then I get (the above went OK on someone else's system):