Page 1 of 1

How to draw vertical text?

Posted: 2018-07-26T02:31:19-07:00
by bkstorm
Hi.
I want to draw vertical text like the image below. How can I do that? Thanks!
Image
Version: ImageMagick 7.0.7-33 Q16 x86_64 2018-05-17 https://www.imagemagick.org
Copyright: © 1999-2018 ImageMagick Studio LLC
License: https://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules
Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff xml zlib

Re: How to draw vertical text?

Posted: 2018-07-26T08:49:51-07:00
by fmw42
Draw then using -annotate in columns using new lines \n (in unix) between characters. Then append the columns. For example for your first column:

Code: Select all

convert -size 50x200 xc:white -pointsize 28 -gravity north -annotate +0+0 "a\nd\na\nd\na" result.png