[Mapserver-users] msGetLabelSize() Error
Becher, Richard
RichardBecher at SierraSystems.com
Wed May 14 13:02:15 PDT 2003
Hi Eric,
Actually, I determined that the problem is with my TYPE attribute in the
Layer object. I am referencing "truetype". Not sure what this does or
where it gets the values from.....
Any ideas?
I commented that attribute out and it works fine....however, I would
like to know what this does and how I can use it.
Cheers,
Richard
-----Original Message-----
From: Eric Bridger [mailto:eric at gomoos.org]
Sent: Wednesday, May 14, 2003 11:53 AM
To: Becher, Richard
Subject: Re: [Mapserver-users] msGetLabelSize() Error
This sounds like a font problem. Do you have FreeType fonts installed.
In the map file you probably need to set a FONSET value:
e.g.
FONTSET "/home/eric/work/resources/fonts/fontset" which is a path to a
text file mapping font names to the full path of your freetype fonts.
Alternatively you can use default fonts. Remove FONT tags from your map
file.
On Wed, 2003-05-14 at 18:14, Becher, Richard wrote:
> Hi All,
>
> I am getting the following error when trying to load a map file.
>
> I am new to this so I am not familiar with how the map file is used as
> an object.....
>
> Can someone tell me why I am getting this error and what I change in
the
> map file to correct it?
>
> Warning: MapServer Error in msGetLabelSize(): Could not read font in
> C:\mapserver\test_draw_map.phtml on line 34
>
>
> Many thanks in advance!
>
> Cheers,
>
> Richard
More information about the MapServer-users
mailing list