[mapserver-users] Font Error:msGetLabelSize()

Lowell Filak lfilak at medinaco.org
Wed Oct 2 10:02:00 PDT 2002


This may not pertain directly to the immediate problem, however you may want to forego solving this issue and switch to Freetype 1. Even if you get this sorted out chances are you may have further problems using Freetype 2. I haven't seen anything in the list that indicates that Freetype 2 works reliably. Please correct me if I'm wrong.
Lowell F.

The following message was sent by "Ivan Paoluzzi" <tesimap at hotmail.com> on Wed, 02 Oct 2002 16:30:24 +0200.

> Hi,
> I have tried to insert the paths absolut but I have same error 
> (msGetLabelSize()....).
> Now this is my font file:
> 
> arial  		C:/windows/fonts/arial.ttf
> timesbd		C:/windows/fonts/timesbd.ttf
> 
> I have also tried with backslash (I know that it isn't correctly) and I 
> haven't solved my problem.
> Other idea?
> Ivan
> 
> 
> >From: woodbri at swoodbridge.com
> >Reply-To: woodbri at swoodbridge.com
> >To: "Ivan Paoluzzi" <tesimap at hotmail.com>, 
> >mapserver-users at lists.gis.umn.edu
> >Subject: Re: [mapserver-users] Font Error:msGetLabelSize()
> >Date: Tue, 1 Oct 2002 13:49:36 -0400
> >
> >Try making the paths absolute in the fonts.txt like
> >
> >arial     /path/to/arial.ttf
> >
> >-Steve
> >
> >On 1 Oct 2002 at 19:24, Ivan Paoluzzi wrote:
> >
> > >
> > >
> > > Hi all,
> > > I have compiled mapserver 3.5 on Win XP with Freetype 2 but when I
> > > tested my project I have this error:
> > >
> > >     msGetLabelSize(): TrueType Font error. Could not find/open font
> > >
> > > Before, I used your mapserver precompiled and my project worked
> > > correctly with truetype font.
> > >
> > >
> > > This is my fonts file (fonts.txt):
> > > arial  		arial.ttf
> > > timesbd		timesbd.ttf
> > >
> > >
> > > In FONTSET I have setted the correct path:
> > > FONTSET "data/fonts.txt"
> > > Because I have copied fonts in this directory of my project.
> > >
> > >
> > > And this is an example of label in my layer:
> > > LABEL
> > >    COLOR 0 0 0
> > >    FONT arial
> > >    TYPE TRUETYPE
> > >    SIZE 8
> > >    ANTIALIAS TRUE
> > >    POSITION AUTO
> > >    ANGLE AUTO
> > >    MINFEATURESIZE 40
> > >    MINDISTANCE 100
> > >    PARTIALS FALSE
> > >    BUFFER 3
> > > END  #LABEL
> > >
> > > Are there some errors?
> > > Any helps is appreciated.
> > > Ivan
> > >
> 
> 
> 
> 
> _________________________________________________________________
> Specisci e ricevi le tue email Hotmail dal tuo cellulare con: 
> http://mobile.msn.it




More information about the MapServer-users mailing list