[mapserver-users] annotation problem

Daniel Morissette morissette at dmsolutions.ca
Thu May 23 10:28:48 EDT 2002


MapServer cannot find the requested font... a few things to check:

- Do you have a FONTSET defined in your mapfile?
- Does is contain a font called ARIAL (in uppercase)?
- Is the path to this font valid?  Try setting an absolute path to the 
  .ttf file for the ARIAL font.


Patricio Gigoux wrote:
> 
> hi:
> I have:
>  ./mapserv -v
> MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ
> SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR
> INPUT=GDAL INPUT=SHAPEFILE
> 
> and in map file
> LAYER
>   NAME nomc
>   MAXSCALE 600000
>   TYPE ANNOTATION
>   STATUS ON
>   DATA nive1_ejes   #text-calle
>   LABELITEM "Nom_siu"
>   CLASSITEM 'nom_siu'
>   CLASS
>     EXPRESSION /./
>     COLOR -1 -1 -1
>     LABEL
>       COLOR 0 0 0
>       ANGLE AUTO
>       BUFFER 2
>       FONT "ARIAL"
>       MAXSIZE 16
>       MINDISTANCE 300
>       MINSIZE 6
> #      PARTIALS TRUE
>       SIZE 10
>       TYPE TRUETYPE
> #      TYPE BITMAP
> #      SIZE SMALL
>       POSITION CC
>       PARTIALS FALSE
>     END
>   END
>   HEADER "ejes_header.html"
>   FOOTER "ejes_footer.html"
>   TOLERANCE 5
> END # streams
> 
> The idea is, annotation display in the same direction than line, but I get:
> 
> Warning: MapServer Error in msGetLabelSize(): Requested font (ARIAL) not
> found. in /www/htdocs/com/plano1_r.php on line 341
> 
> Fatal error: Call to a member function on a non-object in
> /www/htdocs/com/plano1_r.php on line 342
> 
> Do you know what is my wrong?
> 
> thanks in advance
> Patricio



More information about the mapserver-users mailing list