On Sun, Jun 04, 2006 at 05:58:47PM +0200, Steinar H. Gunderson wrote:
> ImageMagick's support for the "fixed" font is broken:
>
> trofast:~/wmtest# montage -font fixed -label '%f' *.jpg test.gif
> montage: unable to read font `fixed'.
> trofast:~/wmtest# montage -font courier -label '%f' *.jpg test.gif
>
> This was introduced somewhere between 6:6.2.3.6-3 and 6:6.2.4.5-0.1,
> as downgrading imagemagick and libmagick9 to 6:6.2.3.6-3 fixes the
> problem. The machine is not running X, so I do not think this is related
> to the other font problems.
The relevant patch introduced between those versions is:
--- old-imagemagick/utilities/montage.c 2006-06-06 13:42:25.000000000 +0200
+++ new-imagemagick/utilities/montage.c 2006-06-06 13:42:46.000000000 +0200
@@ -101,7 +101,7 @@
}
image_info=CloneImageInfo((ImageInfo *) NULL);
status=MontageImageCommand(image_info,argc,argv,(char **) NULL,&exception);
- if (exception.severity >= ErrorException)
+ if (exception.severity != UndefinedException)
CatchException(&exception);
image_info=DestroyImageInfo(image_info);
DestroyExceptionInfo(&exception);
That is, now you get to see the warning message while it used to be
ignored in previous versions. The generated label should be exactly the
same, rendered in the default font (Helvetica). I haven't found a
version of ImageMagick that would actually select a fixed-width font if
you specified '-font fixed'. They all silently fell back to the default.
It's just the warning that's new. Maybe that's just a relict from 4.x
versions or earlier that I haven't checked. What is supported in 6.x is
a command-line option '-family fixed' that correctly selects a
Courier-type font. Alas, this option is implemented for some of the
tools only (convert for example groks it, montage doesn't--that's just
an oversight, presumably). Apart from that, ImageMagick seems to work as
intended, and you should probably just change the command line to use
'-font courier'.
Regards,
Daniel.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]