Font With Space in name gives problem.. need solution urgent
Posted: 2008-04-20T23:34:14-07:00
Hi All,
I m trying to generate images of text on whatever user writes in the textbox. We have given the ability to user that he/she can select font also. I m using this command:
convert -background none -fill 0 -font "Stencil" -pointsize 17 -size 150x47.2 -gravity northwest caption:"Testing Sample Data" F:\Projects\WIS\GREETWELL\Source\UserFiles\designs\User\TextImages\739ab274-b321-48a8-af3c-b909d7140750.png
Now in the above command i used font as
-font "Stencil"
it works successfully.
But if user selects a font which has space in name like:
"Lucida Handwriting" or "Arial Black"
then image magick gives error.
I tried this ImageMagick-6.0.1-Q16 and then on ImageMagick-6.3.7-Q16. Can somebody suggest a solution.
Thanks,
Gaurav Sharma
I m trying to generate images of text on whatever user writes in the textbox. We have given the ability to user that he/she can select font also. I m using this command:
convert -background none -fill 0 -font "Stencil" -pointsize 17 -size 150x47.2 -gravity northwest caption:"Testing Sample Data" F:\Projects\WIS\GREETWELL\Source\UserFiles\designs\User\TextImages\739ab274-b321-48a8-af3c-b909d7140750.png
Now in the above command i used font as
-font "Stencil"
it works successfully.
But if user selects a font which has space in name like:
"Lucida Handwriting" or "Arial Black"
then image magick gives error.
I tried this ImageMagick-6.0.1-Q16 and then on ImageMagick-6.3.7-Q16. Can somebody suggest a solution.
Thanks,
Gaurav Sharma