msGetLabelSize()

Bart van den Eijnden (OSGIS) bartvde at XS4ALL.NL
Mon May 8 14:03:37 EDT 2006


I have attached a sample fontset file, it's a text file with "font name" 
and "ttf file".
<cid:part1.03010704.03020807 at xs4all.nl>
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

-------------- next part --------------
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


More information about the mapserver-users mailing list