On Wed, 4 Mar 2009 03:51:24 +0200
Noel da Costa <[email protected]> wrote:

| Hi there,
| 
| I've been following the instructions here:
| http://www.imagemagick.org/Usage/#font
| 
| It all works wonderfully when I'm logged in as root via ssh to my  
| server... "convert -list font" shows all my newly installed fonts.
| However.. if I try and get my webapp to display installed fonts I get  
| a reduced list. I've tried various things to fix this:
| 
| 1. I edited /usr/lib64/ImageMagick-6.4.3/config/type.xml, adding in  
| the following:
| <typemap>
|     <include file="type-ghostscript.xml" />
|     <include file="/root/.magick/type.xml" />
| </typemap>
| 
| ... i.e. an inclusion of the type.xml that was working when logged in  
| as root.
| 
| 2. I also tried creating a .magick/type.xml file in /var/www/ , which  
| is listed as the home directory for the "apache" user.
| 
| 
You web app probbaly runs as a special user (not root) as such it does
not have a HOME set or even a home directory to look for fonts.

Best idea for web apps is to specify the font directly by using

   -font /the/path/to/the/font.ttf

OR as you did update the system type.xml or have it include a type.xml
file you generate, such as using the   imagick_type_gen   script

   http://www.imagemagick.org/Usage/scripts/imagick_type_gen

This by default searches the whole system for font files and creates
an all-inclusive type.xml file.   however you can now also specify just
a specific sub-directory to search (see comments in the script) to
create a 'sub-set' type.xml (like the ghostscript one) that you can include
and control more directly.


  Anthony Thyssen ( System Programmer )    <[email protected]>
 -----------------------------------------------------------------------------
          First they ignore you,
            then they laugh at you,
              then they fight you,
                then you win.       -- Mahatma Gandhi
 -----------------------------------------------------------------------------
     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