Page 1 of 1
Error code wrong for failure to find font
Posted: 2006-04-25T08:59:55-07:00
by ridera
convert -debug exception -size 320x100 xc:lightblue -font Times -pointsize 72 -fill blue -draw 'text 25,65 Anthony' /foo/fancy_title.png
error report: "unable to read font `Times'"
Error code is "0"
Image is written OK; but, just contains the lightblue background, no text.
Posted: 2006-04-30T13:33:54-07:00
by ridera
This bug makes it difficult to use exceptions error catching.
Posted: 2006-04-30T13:51:41-07:00
by magick
Failure to find a font is a warning not an error. A warning means something unexpected happened but the process can continue. An error means something unexpected happened and the process cannot continue. The only solution would be to reclassify a failure to find a font as an error which would subsequently return an error status when the command line utilities are run.
Posted: 2006-05-01T15:11:52-07:00
by ridera
Seems like I read somewhere that if a font cannot be found, a defaut one will be used. But, this doesn't seem to be the case.
I had a problem where IM could not find any fonts; the path was wrong on my shared host.
I'd suggest:
If can't find the fonts directory; that's an error.
If can't find a specified font; then post a warning and subsitute a default font.
Thanks, Al.......