possible bug -direction for text.

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
fmw42
Posts: 23903
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

possible bug -direction for text.

Post by fmw42 » 2018-02-14T12:35:24-07:00

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

snibgo
Posts: 10729
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: possible bug label:

Post by snibgo » 2018-02-14T13:02:12-07:00

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.
snibgo's IM pages: im.snibgo.com

User avatar
fmw42
Posts: 23903
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug label:

Post by fmw42 » 2018-02-14T13:27:12-07:00

Thanks snibgo. Careless mistake. I was thinking -background but wrote xc:. I will update my post.

User avatar
magick
Site Admin
Posts: 10843
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug -direction for text.

Post by magick » 2018-02-14T15:41:09-07:00

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.

User avatar
fmw42
Posts: 23903
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug -direction for text.

Post by fmw42 » 2018-02-14T15:48:09-07:00

Thanks for the update. Can you add that to the comments for -direction on the options page?

Post Reply