Page 1 of 1

How to draw text that includes apostrophes.

Posted: 2010-03-15T10:42:53-07:00
by drewvy
I need to include apostrophes in the text I'm printing.

Here is the text I would like to produce.

BLUE X'Y'Z' Prime Values X'=2014 Y'=1416 Z'=3816


Here is how I draw text. I can't figure out how to get those apostrophes added without breaking the parsing of that statement.

-draw "text 100,550 ' BLUE X'Y'Z' Prime Values X'=2014 Y'=1416 Z'=3816 ' "

Thank you for your help,
Drew

Re: How to draw text that includes apostrophes.

Posted: 2010-03-15T11:01:28-07:00
by snibgo
To avoid problems like this, I use the "caption:@file.txt" style.

Re: How to draw text that includes apostrophes.

Posted: 2010-03-15T11:10:42-07:00
by magick
Try this:
  • convert logo: -draw "stroke red text 100,100 ' BLUE X\'Y\'Z\' Prime Values X\'=2014 Y\'=1416 Z\'=3816 ' " logo.png

Re: How to draw text that includes apostrophes.

Posted: 2010-03-15T12:11:09-07:00
by drewvy
Works great! Thank you.