Caption not wordwrapping correctly
Posted: 2012-05-18T21:37:50-07:00
viewtopic.php?f=1&t=21043
IM version: ImageMagick 6.7.6-9 2012-05-16 Q16
OS: CentOS 6.2 64-bit
The following code does not wrap the text:
For most sentences it will wrap nicely, but for some, such as the example given here "Essays on the Drama, Edited With an Introduction and Notes", the whole title is on one line and difficult to read because of this, with a lot of white space above and below when I position it centered in the 1335x806 space for which it is intended.
For an example of what it looks like in the final image, see here:
http://us-fs.forgottenbooks.org/image.p ... 1000005673
For most sentences it looks nice, like this:
http://us-fs.forgottenbooks.org/image.p ... 1000004148
Older versions of IM did not have this problem (but had another problem where sometimes words would be wrapped onto the next line, which was even worse).
This only occurs on 1/100 sentences, and any change in font changes whether this happens because its dependent on the particular combinations of words, letters and their sizes, which changes when this issue occurs.
I have temporarily uploaded the font for testing to:
http://www.forgottenbooks.org/smallcaps.otf
I don't think it's a font issue, but there it is for you to check.
IM version: ImageMagick 6.7.6-9 2012-05-16 Q16
OS: CentOS 6.2 64-bit
The following code does not wrap the text:
Code: Select all
convert -limit thread 1 -background transparent -colorspace CMYK -font "smallcaps.otf" +pointsize -size 1335x806 -gravity center -fill "rgb(28,22,17)" caption:"Essays on the Drama, Edited With an Introduction and Notes" -trim -write working.mpc -format "%wx%h" info:-
For an example of what it looks like in the final image, see here:
http://us-fs.forgottenbooks.org/image.p ... 1000005673
For most sentences it looks nice, like this:
http://us-fs.forgottenbooks.org/image.p ... 1000004148
Older versions of IM did not have this problem (but had another problem where sometimes words would be wrapped onto the next line, which was even worse).
This only occurs on 1/100 sentences, and any change in font changes whether this happens because its dependent on the particular combinations of words, letters and their sizes, which changes when this issue occurs.
I have temporarily uploaded the font for testing to:
http://www.forgottenbooks.org/smallcaps.otf
I don't think it's a font issue, but there it is for you to check.