<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thanks, that seems to have fixed things. It only seems to work with arial but the sizes work now. <div><br></div><div>I'll look into how to get full control of installed fonts I guess.<br><div><br>Michael McInnis
6033 44th Ave. N.E.
Seattle, WA 98115
206 517-4701<br><br><div>> From: jukka.rahkonen@mmmtike.fi<br>> To: mmcinnis59@msn.com; mapserver-users@lists.osgeo.org<br>> Subject: VS: [mapserver-users] TYPE/FONT/SIZE breaks labels<br>> Date: Mon, 16 Sep 2013 17:09:04 +0000<br>> <br>> Hi,<br>> <br>> 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<br>> <br>> -Jukka Rahkonen-<br>> ________________________________<br>> Michael McInnis wrote:<br>> <br>> > Mapservers!<br>> <br>> > 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.<br>> <br>> > Does anyone know why the fonts will not function?<br>> <br>> LAYER<br>> CONNECTIONTYPE POSTGIS<br>> NAME airports<br>> CONNECTION "host=xxxx dbname=xxxx user=xxxx password=xxxx port=xxxx"<br>> PROCESSING "CLOSE_CONNECTION=DEFER"<br>> #DATA "geom From airports"<br>> 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"<br>> STATUS ON<br>> TYPE POINT<br>> LABELITEM "icao"<br>> CLASS<br>> LABEL<br>> #TYPE truetype<br>> #FONT "sans"<br>> #SIZE 8<br>> ANTIALIAS TRUE<br>> POSITION AUTO<br>> PARTIALS TRUE<br>> MINDISTANCE 100<br>> BUFFER 4<br>> COLOR 0 0 0<br>> END<br>> NAME "airportsClass"<br>> STYLE<br>> SYMBOL 'circle-filled'<br>> SIZE 3<br>> COLOR 255 22 22<br>> END<br>> END # Class<br>> END # Layer<br></div></div></div> </div></body>
</html>