Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Trying to watermark images and allow multiline text to be used. The user can define there own string. I'm building an image of the text and then compositing it over the image to be water marked. The text image is multi shaded so it is visible on any background.
I'm using the -draw text primitive to build the text image(stamp.png). I initially used -annotate which allows me to use the \n newline for multiline but the results were not as good as the -draw text allows. My text is stored in the variable STEXT.
How can I pass in a newline character to -draw text?
It seems odd that there is no way to do multiline text with -draw? No back door or work around?
Is there a different primitive like -draw that will allow me to place the text and specify the fill color. I understand that annotate is a wrapper around -draw to provide a simpler interface, yet it allows the use of a newline char. Must be some way to make draw work directly?
I believe it still can be used in -annotate or caption: or label:
Annotate is not any harder to use than -draw and allows the same or more flexibility with drawing text. It allows slanting or rotating the text and you can use -geometry for the offsets.
What is your IM version and platform? There should be no difference if font size if the same pointsize is used? What is your version of freetype. See convert -list format and it should say for TTF, such as
TTF* TTF r-- TrueType font (Freetype 2.7.1)
Using IM 6.9.8.2 Q16, both of these give the same size font and provide the new line. Note that the text in -draw has a line feed provided by the return key right after the first "testing"