Page 1 of 1

possible bug -direction for text.

Posted: 2018-02-14T12:35:24-07:00
by fmw42
IM 6.9.9.34 Q16 and 7.0.7.22 Q16 HDRI Mac OSX Sierra

-direction right-to-left only shows one character.


No -direction:

Code: Select all

convert -size 500x -background white \
-fill black \
-gravity center \
-font Ubuntu-Bold \
label:"ABCD" \
test2.png
Image


-direction left-to-right:

Code: Select all

convert -size 500x -background white \
-fill black \
-gravity center \
-direction left-to-right \
-font Ubuntu-Bold \
label:"ABCD" \
test2_ltr.png
Image



-direction right-to-left:

Code: Select all

convert -size 500x -background white \
-fill black \
-gravity center \
-direction right-to-left \
-font Ubuntu-Bold \
label:"ABCD" \
test2_rtl.png
Image

Re: possible bug label:

Posted: 2018-02-14T13:02:12-07:00
by snibgo
1. You created two images, from "xc:" and "label:". As you didn't specify a height, IM used "500x1" for the "xc:" image. Is that an issue?

2. I've never understood what "-direction right-to-left" does or is supposed to do. Sorry.

Re: possible bug label:

Posted: 2018-02-14T13:27:12-07:00
by fmw42
Thanks snibgo. Careless mistake. I was thinking -background but wrote xc:. I will update my post.

Re: possible bug -direction for text.

Posted: 2018-02-14T15:41:09-07:00
by magick
Direction is utilized for complex text layout @ https://en.wikipedia.org/wiki/Complex_text_layout. The RAQM delegate library is required. Otherwise direction is ignored.

Re: possible bug -direction for text.

Posted: 2018-02-14T15:48:09-07:00
by fmw42
Thanks for the update. Can you add that to the comments for -direction on the options page?