possible bug -direction IM 6.7.6.8 Q16

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: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

possible bug -direction IM 6.7.6.8 Q16

Post by fmw42 »

With respect to topic, viewtopic.php?f=1&t=20881


Writing right-to-left text seems to be broken in my IM 6.7.6.8 Q16 Mac OSX Snow Leopard.

This works, but the text is not right-to-left

convert -background white -fill black -encoding Unicode -font Arial -gravity center \
-pointsize 40 label:'ניסיון' show:


But this gives only a white image, no black text.

convert -background white -fill black -encoding Unicode -font Arial -gravity center \
-direction right-to-left -pointsize 40 label:'ניסיון' show:
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug -direction IM 6.7.6.8 Q16

Post by magick »

We can reproduce the problem and will have a patch within a day or two. Thanks.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug -direction IM 6.7.6.8 Q16

Post by fmw42 »

magick wrote:We can reproduce the problem and will have a patch within a day or two. Thanks.
On the User's forum, Anthony seems to imply that label: is too primitive and that one may need to use pango to make this work.

see
viewtopic.php?f=1&t=20881#p84274
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: possible bug -direction IM 6.7.6.8 Q16

Post by anthony »

Actually I said that it depends on the font being used.

But essentially yes, label: will not handle all unicode properly, as some parts need higher level control and maybe font switching to handle right. Pango provides this.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply