[mapserver-users] Two questions

Ivan Paoluzzi tesimap at hotmail.com
Fri Sep 27 16:41:50 PDT 2002


Hi,
I have just done these things because before I used Mapserever 3.5 
precompiled. And font worked correctly.
This is sections of my map file where is these things that you wrote me:

NAME assi
STATUS ON
SIZE 600 600
EXTENT 34516.634400379 50299.88405952 67395.339019834 78542.30613897
UNITS meters
SCALE 250000
IMAGECOLOR 236 248 203
SHAPEPATH "data"
FONTSET "data/fonts.txt"  <--- I have created a file with font names
                               that I use


LAYER
  NAME assist
  TYPE LINE
  STATUS ON
  DATA assist
  TOLERANCE 8
  LABELITEM nomevia
  LABELMAXSCALE 20000
    CLASS
      NAME "Assi Stradali"
      TEMPLATE "assist.html"
	COLOR 0 0 100
        LABEL
            COLOR 0 0 0
	    FONT arial      <--- font name that I use
	    TYPE TRUETYPE
	    SIZE 8
            ANTIALIAS TRUE
	    POSITION AUTO
            ANGLE AUTO
            MINFEATURESIZE 40
            MINDISTANCE 100
	    PARTIALS FALSE
	    BUFFER 3
	  END  #LABEL
    END  # CLASS
  HEADER "assist_header.html"
  FOOTER "assist_footer.html"
END  # LAYER

So I think that the problem is freetype or gd...
Ivan


>From: "Tyler Mitchell" <TMitchell at lignum.com>
>To: mapserver-users at lists.gis.umn.edu
>Subject: Re: [mapserver-users] Two questions
>Date: Thu, 26 Sep 2002 13:11:47 -0700
>
>
>At 26-Sep-02 11:58 AM, owner-mapserver-users at lists.gis.umn.edu wrote:
> > Hi all,
> > I have two questions.
> >
> > i)I have compiled mapserver 3.5 on Win XP, I think correctly because I
> > haven't message error. But when I test mapserv.exe on my project I have
>this
> > error:
> > loadlabel(): Unknown identifier. Keyword FONT is not valid without
> > TrueType font support.
> >
> > But If I change section of truetype font, in map file, with bitmap font
>my
> > project work correctly.
> > So I think that the problem is freetype or gd compiled with freetype,but
>I
> > didn't have problem when I have compiled these libraries.
> > Any idea?
>
>There are three things that you need to get the truetype fonts working.
>This may be in the map file/symbol documentation, but here's my spin.
>1) specify FONTSET (I put mine right under the IMAGECOLOR line in the top
>of my map file) and point it to a text file lists two things - a font
>"name" and the location of the truetype font filename. (i.e. arial.ttf)
>
>2) In your LABEL Object for the layer you have a line:
>FONT <font name>
>With "name" as in point 1
>
>3) Right after that line I put in a line to specify the type of font.  I
>assume you were missing this.
>TYPE truetype
>
>Does that work for you?  I copied the ttf files I wanted into a folder by
>the map file.




_________________________________________________________________
Chiacchiera con gli amici online, prova MSN Messenger: 
http://messenger.msn.it




More information about the MapServer-users mailing list