"Christina Williams" on  wrote...
| Hi All,
| 
| I am continuing to have a problem I wrote about previously, except now it
| is occuring on a brand new linux computer running IM version 6.2.8, newly
| installed. When I try to enter a convert command, it has this error:
| "convert: unable to read font
| '/usr/share/fonts/default/TrueType/arial.ttf'. This folder doesnt exist,
| and within the fonts folder, there is a Type1 and ghostscript folder,
| neither of which contain this font or even a font with this file
| extension.
| 
| This same convert command is currently running just fine on a different
| computer, which is running IM version 5.3.8.
| 
| The command that sets this off is as follows:
| 
| /usr/bin/convert $txt_fmt -draw $drawcmd:q filename.raw filename.png
| 
| where $txt_fmt =3D '-fill white -box black -pointsize 50 -gravity south'
| and $drawcmd =3D 'text 0,960 "'$timestamp:q'"'
| where $timestamp is just a string with the time
| 
| I was previously informed this was an outdated way to use convert, but
| I've inherited this script from a previous employee, and would prefer to
| leave things the way they are for the purpose of being consistent. It
| seems to me that it should be as simple as adding whatever font package I=
| M
| thinks it needs, or changing the defaults to use the fonts already on my
| computer.
| 
Even under IM v5  the font locations and there user labels are defined
by a "type" file.   In modern IM v6 the file is called "type.xml"
for IM v5 (and early IM v6) it was called  "type.magick"

You will need to find that file and either fix it,  or in the home
directory of the user running IM add that file to a ".magick"
sub-directory.

A linux script is pointed to from the top level on IM Examples that
generates a "type' file that defined all fonts it can find on your
system.

    http://www.imagemagick.org/Usage/#font

This script defines the font names as best it can.  You can then look at
the file it outputs, or install it and use   convert -list type
to see what fonts IM now has defined by this file.


WARNING WARNING WARNING
IM version 5 does NOT handle multiple image operations per command very
well.  This was why IM v6 re-organised the command line handling of
options.  See IM Examples Basics for details
   http://www.imagemagick.org/Usage/basics/


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
  Star Trek: Deep Space Nine....to boldly stay where no one has stayed before
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to