Page 1 of 1

Using multiple -draw decoration

Posted: 2019-08-16T08:59:40-07:00
by schrmh
On this site there is an example of using decoration UnderLine: https://www.imagemagick.org/Usage/text/#draw

Code: Select all

convert -list decoration 
lists four existing options:
LineThrough
None
Overline
Underline
So now I would like to use OverLine and UnderLine together on the same text.
What I do at the moment is:

Code: Select all

  convert -size 1276x1642 xc:white \
          -draw "font Arial  font-size 72  decorate OverLine \
                 fill dodgerblue  stroke dodgerblue  stroke-width 1 \
                 translate 10,110 rotate -15 text 0,0 ' TEXT ' \
                 font Arial  font-size 72  decorate UnderLine \
                 text 0,0 ' TEXT '" \
          output.jpg
but I consider this a hacky work-around since I actually have two texts here that just happen to be on the same position..
So is there a way to use UnderLine and OverLine together without using a second text?