[mapserver-users] Two questions

Tyler Mitchell TMitchell at lignum.com
Thu Sep 26 16:11:47 EDT 2002


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.






More information about the mapserver-users mailing list