I have attached a sample fontset file, it's a text file with "font name" and "ttf file".
<cid:[email protected]>
You could put your ttf files in the same directory as the fontset, or use a path in the font file.

Best regards,
Bart

Julien Bessiere wrote:

Hi,
I'm quite new in using mapserver so my question may be very basic.
I'm working with FGS package on FC5.

i have this error message :
msGetLabelSize(): TrueType Font error. Requested font (Vera) not found.

I've tried different path such as :

FONTSET "/usr/share/X11/fonts/TTF/"
or
FONTSET "/usr/share/fonts/bitstream-vera"
or
FONTSET "/home/julien/fgs/www/htdocs/4/fontset.txt
with fontset.txt = "/usr/share/fonts/bitstream-vera"


LEGEND
    STATUS on
    IMAGECOLOR 230 230 230
    LABEL
         TYPE truetype
         FONT "Vera"
         COLOR 0 0 0
         SIZE 10
         ANTIALIAS true
    END
END

or

LEGEND
    STATUS on
    IMAGECOLOR 230 230 230
    LABEL
         TYPE truetype
         FONT "Vera.ttf"
         COLOR 0 0 0
         SIZE 10
         ANTIALIAS true
    END
END

But i still have the same message !
Does someone have a suggestion ?
Thanks
Julien




--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl

sans                    Vera.ttf
sans-bold               VeraBd.ttf
sans-bold-oblique       VeraBI.ttf
sans-oblique            VeraIt.ttf
monospace-bold          VeraMoBd.ttf
monospace-bold-oblique  VeraMoBI.ttf
monospace-oblique       VeraMoIt.ttf
monospace               VeraMono.ttf
serif                   VeraSe.ttf
serif-bold              VeraSeBd.ttf

Reply via email to