[Mapserver-users] Mapserver 3.5 - using TrueType Fonts

Richard Greenwood rich at greenwoodmap.com
Thu Jan 9 22:03:20 EST 2003


--=======60023EC=======
Content-Type: multipart/alternative; x-avg-checked=avg-ok-71A36F84; boundary="=====================_45565469==.ALT"


--=====================_45565469==.ALT
Content-Type: text/plain; x-avg-checked=avg-ok-71A36F84; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 8bit

Are the font files also in wwwroot\fonts\ ? I've found it easier to have 
the font.list in the same directory as the font files. Also check case - 
the font file names in font.list are case sensitive (even on windows).

Rich

At 10:33 AM 1/10/2003 +0800, you wrote:

>I have line data shape file (i.e. roads) and I wish to label the roads 
>using the attribute "Road_name".
>
>I've tried a number of things w.r.t. setting the path for the FONTSET but 
>still cannot get it.
>
>my template & map file are in the wwwroot, which is my Home Directory on 
>Win2K and IIS.
>I have my fonts.list file in "wwwroot\fonts\fonts.list"
>
>when I try FONTSET "fonts/fonts.list" I get this error -
>
>getSymbol(): Symbol definition error. (FONT):(47)
>
>Then I try SYMBOLSET "C:\Inetpub\wwwroot\symbols\symbols35.sym" I get this 
>error -
>
>getSymbol(): Symbol definition error. (FONT):(48)
>
>I don't have a symbols.sym file from the downloaded stuff, just the 
>symbols35.sym file
>
>Don't know what to try next. Here is my map file (there could be errors)
>
>MAP
>NAME S1EX1
>EXTENT 101.6 3.03 101.77 3.25
>#EXTENT [minx] [miny] [maxx] [maxy]
>SIZE 500 400
>#FONTSET "fonts/fonts.list"
>#SYMBOLSET "C:\Inetpub\wwwroot\symbols\symbols35.sym"
>SYMBOLSET "/symbols/symbols35.sym"
>FONTSET "C:\Inetpub\wwwroot\fonts\fonts.list"
>#FONTSET ../fonts/fonts.list
>#FONTSET "web/sdbdev/packages/dv-mapping/fonts/fonts.list"
>
>SHAPEPATH "data/Malaysia"
>
>WEB
>   TEMPLATE s1ex1.html
>   IMAGEPATH "set in index.html"
>   IMAGEURL "set in index.html"
>END
>
>LAYER # States
>     NAME "KlangValley"
>     DATA KlangValley
>     STATUS DEFAULT
>     TYPE POLYGON
>     CLASSITEM "Negeri"
>     CLASS
>     NAME "KL"
>     COLOR 255 255 128
>     OUTLINECOLOR 0 0 0
>   END # end of class object
>END # end of layer object
>
>LAYER
>   NAME "roads"
>   STATUS OFF
>   DATA ROAD_GPS
>   LABELITEM "Road_name"
>   TYPE LINE
>   CLASS
>     COLOR 0 0 255
>     LABEL
>         TYPE TRUETYPE
>          ANTIALIAS
>  FONT arial
>         COLOR 0 0 0
>  OUTLINECOLOR 220 220 220
>  SIZE 11
>  #SIZE MEDIUM
>  ANGLE AUTO
>  POSITION UC
>  OFFSET 0 2
>  buffer 2
>     END#label
>   END
>END # roads
>END # end of map file
>#=========================================

Richard W. Greenwood, PLS
(307) 733-0203
Rich at GreenwoodMap.com
www.GreenwoodMap.com 

--=====================_45565469==.ALT
Content-Type: text/html; x-avg-checked=avg-ok-71A36F84; charset=us-ascii
Content-Transfer-Encoding: 8bit

<html>
<body>
Are the font files also in <font face="arial" size=2>wwwroot\fonts\ ?
I've found it easier to have the font.list in the same directory as the
font files. Also check case - the font file names in font.list are case
sensitive (even on windows).<br><br>
</font>Rich<br><br>
At 10:33 AM 1/10/2003 +0800, you wrote:<br><br>
<blockquote type=cite class=cite cite><font face="arial" size=2>I have
line data shape file (i.e. roads) and I wish to label the roads using the
attribute &quot;Road_name&quot;.</font><br>
&nbsp;<br>
<font face="arial" size=2>I've tried a number of things w.r.t. setting
the path for the FONTSET but still cannot get it. </font><br>
&nbsp;<br>
<font face="arial" size=2>my template &amp; map file are in the wwwroot,
which is my Home Directory on Win2K and IIS.<br>
I have my fonts.list file in
&quot;wwwroot\fonts\fonts.list&quot;</font><br>
&nbsp;<br>
<font face="arial" size=2>when I try FONTSET &quot;fonts/fonts.list&quot;
I get this error - </font><br>
&nbsp;<br>
<font face="arial" size=2>getSymbol(): Symbol definition error.
(FONT):(47) </font><br>
&nbsp;<br>
<font face="arial" size=2>Then I try SYMBOLSET
&quot;C:\Inetpub\wwwroot\symbols\symbols35.sym&quot; I get this error -
</font><br>
&nbsp;<br>
<font face="arial" size=2>getSymbol(): Symbol definition error.
(FONT):(48) </font><br>
&nbsp;<br>
<font face="arial" size=2>I don't have a symbols.sym file from the
downloaded stuff, just the symbols35.sym file</font><br>
&nbsp;<br>
<font face="arial" size=2>Don't know what to try next. Here is my map
file (there could be errors)</font><br>
&nbsp;<br>
<font face="arial" size=2>MAP<br>
NAME S1EX1<br>
EXTENT 101.6 3.03 101.77 3.25<br>
#EXTENT [minx] [miny] [maxx] [maxy] <br>
SIZE 500 400<br>
#FONTSET &quot;fonts/fonts.list&quot;<br>
#SYMBOLSET &quot;C:\Inetpub\wwwroot\symbols\symbols35.sym&quot;<br>
SYMBOLSET &quot;/symbols/symbols35.sym&quot;<br>
FONTSET &quot;C:\Inetpub\wwwroot\fonts\fonts.list&quot;<br>
#FONTSET ../fonts/fonts.list<br>
#FONTSET
&quot;web/sdbdev/packages/dv-mapping/fonts/fonts.list&quot;</font><br>
&nbsp;<br>
<font face="arial" size=2>SHAPEPATH 
&quot;data/Malaysia&quot;</font><br>
&nbsp;<br>
<font face="arial" size=2>WEB<br>
&nbsp; TEMPLATE s1ex1.html<br>
&nbsp; IMAGEPATH &quot;set in index.html&quot;<br>
&nbsp; IMAGEURL &quot;set in index.html&quot;<br>
END</font><br>
&nbsp;<br>
<font face="arial" size=2>LAYER # States<br>
&nbsp;&nbsp;&nbsp; NAME &quot;KlangValley&quot;<br>
&nbsp;&nbsp;&nbsp; DATA KlangValley<br>
&nbsp;&nbsp;&nbsp; STATUS DEFAULT<br>
&nbsp;&nbsp;&nbsp; TYPE POLYGON<br>
&nbsp;&nbsp;&nbsp; CLASSITEM &quot;Negeri&quot;<br>
&nbsp;&nbsp;&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp; NAME &quot;KL&quot;<br>
&nbsp;&nbsp;&nbsp; COLOR 255 255 128<br>
&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<br>
&nbsp; END # end of class object<br>
END # end of layer object</font><br>
&nbsp;<br>
<font face="arial" size=2>LAYER<br>
&nbsp; NAME &quot;roads&quot;<br>
&nbsp; STATUS OFF<br>
&nbsp; DATA ROAD_GPS<br>
&nbsp; LABELITEM &quot;Road_name&quot;&nbsp; <br>
&nbsp; TYPE LINE<br>
&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp; COLOR 0 0 255<br>
&nbsp;&nbsp;&nbsp; LABEL<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE TRUETYPE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ANTIALIAS<br>
&nbsp;FONT arial<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 0<br>
&nbsp;OUTLINECOLOR 220 220 220<br>
&nbsp;SIZE 11<br>
&nbsp;#SIZE MEDIUM<br>
&nbsp;ANGLE AUTO<br>
&nbsp;POSITION UC<br>
&nbsp;OFFSET 0 2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;buffer 2<br>
&nbsp;&nbsp;&nbsp; END#label<br>
&nbsp; END<br>
END # roads<br>
END # end of map file<br>
#=========================================</blockquote>
<x-sigsep><p></x-sigsep>
Richard W. Greenwood, PLS<br>
(307) 733-0203<br>
Rich at GreenwoodMap.com<br>
<a href="http://www.greenwoodmap.com/" eudora="autourl">www.GreenwoodMap.com</a></font></body>
</html>


--=====================_45565469==.ALT--

--=======60023EC=======--




More information about the mapserver-users mailing list