Make sure that the paths in your fontset file point to the font files and 
remember that the paths are probably case sensitive.

David.

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Michael McInnis
Sent: Monday, September 16, 2013 12:52 PM
To: Rahkonen Jukka; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] TYPE/FONT/SIZE breaks labels

Thanks, that seems to have fixed things. It only seems to work with arial but 
the sizes work now.

I'll look into how to get full control of installed fonts I guess.

Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701
> From: jukka.rahko...@mmmtike.fi<mailto:jukka.rahko...@mmmtike.fi>
> To: mmcinni...@msn.com<mailto:mmcinni...@msn.com>; 
> mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
> Subject: VS: [mapserver-users] TYPE/FONT/SIZE breaks labels
> Date: Mon, 16 Sep 2013 17:09:04 +0000
>
> Hi,
>
> Add DEBUG 5 into your LAYER and you may see from the MS_ERRORFILE what is the 
> problem. My bet is that you are missing the FONTSET 
> http://www.mapserver.org/mapfile/fontset.html
>
> -Jukka Rahkonen-
> ________________________________
> Michael McInnis wrote:
>
> > Mapservers!
>
> > I have bailed on dynamically generating labels and fell back to a .map 
> > based solution and may have found the primary problem. If I enable TYPE or 
> > FONT or SIZE in the LABEL section my map fails to display. I installed 
> > Truetype fonts on my Ubuntu system on Friday.
>
> > Does anyone know why the fonts will not function?
>
> LAYER
> CONNECTIONTYPE POSTGIS
> NAME airports
> CONNECTION "host=xxxx dbname=xxxx user=xxxx password=xxxx port=xxxx"
> PROCESSING "CLOSE_CONNECTION=DEFER"
> #DATA "geom From airports"
> DATA "geom From (select a.icao, geom From airports a left join airportdata e 
> on a.icao = e.icao where e.icao Is Not Null) as subquery using unique icao 
> using srid=4326"
> STATUS ON
> TYPE POINT
> LABELITEM "icao"
> CLASS
> LABEL
> #TYPE truetype
> #FONT "sans"
> #SIZE 8
> ANTIALIAS TRUE
> POSITION AUTO
> PARTIALS TRUE
> MINDISTANCE 100
> BUFFER 4
> COLOR 0 0 0
> END
> NAME "airportsClass"
> STYLE
> SYMBOL 'circle-filled'
> SIZE 3
> COLOR 255 22 22
> END
> END # Class
> END # Layer
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to