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.
I won't remove the other topic as it contains information that might be useful. I would merge the topics but when I try clever things like that I end up deleting the universe.
magick ^
-fill black ^
-background white ^
-font myriad-web-pro ^
( -pointsize 15 -size 100x caption:"This does not wrap" ) ^
( -pointsize 30 -size 200x caption:"This does not wrap" ) ^
( -pointsize 40 -size 300x caption:"This does not wrap" ) ^
( -pointsize 45 -size 300x caption:"This does not wrap" ) ^
( -pointsize 46 -size 300x caption:"This does not wrap" ) ^
( -pointsize 48 -size 300x caption:"This does not wrap" ) ^
( -pointsize 48 -size 320x caption:"This does not wrap" ) ^
( -pointsize 49 -size 350x caption:"This does not wrap" ) ^
( -pointsize 50 -size 350x caption:"This does not wrap" ) ^
( -pointsize 50 -size 400x caption:"This does not wrap" ) ^
( -pointsize 55 -size 450x caption:"This does not wrap" ) ^
( -pointsize 60 -size 450x caption:"This does not wrap" ) ^
-bordercolor black ^
-border 2x2 ^
-bordercolor white ^
-border 10x10 ^
-append ^
-shave 10x10 ^
-border 20x20 ^
caption_myriad-web-pro.png
... I get this as the output image...
The error seems to be hit and miss and occurs either with the default font or any specified font. It happens with no "-gravity" setting or with a setting like "-gravity center". It appears to be making the wrapping decision using a fairly narrow combination of pointsize and width, so sometimes it doesn't look like a problem, but changing one factor by just a bit can make it happen.