[Mapserver-users] Mapserver 3.5 - using TrueType Fonts

Richard Greenwood rich at greenwoodmap.com
Thu Jan 9 19:03:20 PST 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 "Road_name".</font><br>
 <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>
 <br>
<font face="arial" size=2>my template & map file are in the wwwroot,
which is my Home Directory on Win2K and IIS.<br>
I have my fonts.list file in
"wwwroot\fonts\fonts.list"</font><br>
 <br>
<font face="arial" size=2>when I try FONTSET "fonts/fonts.list"
I get this error - </font><br>
 <br>
<font face="arial" size=2>getSymbol(): Symbol definition error.
(FONT):(47) </font><br>
 <br>
<font face="arial" size=2>Then I try SYMBOLSET
"C:\Inetpub\wwwroot\symbols\symbols35.sym" I get this error -
</font><br>
 <br>
<font face="arial" size=2>getSymbol(): Symbol definition error.
(FONT):(48) </font><br>
 <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>
 <br>
<font face="arial" size=2>Don't know what to try next. Here is my map
file (there could be errors)</font><br>
 <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 "fonts/fonts.list"<br>
#SYMBOLSET "C:\Inetpub\wwwroot\symbols\symbols35.sym"<br>
SYMBOLSET "/symbols/symbols35.sym"<br>
FONTSET "C:\Inetpub\wwwroot\fonts\fonts.list"<br>
#FONTSET ../fonts/fonts.list<br>
#FONTSET
"web/sdbdev/packages/dv-mapping/fonts/fonts.list"</font><br>
 <br>
<font face="arial" size=2>SHAPEPATH 
"data/Malaysia"</font><br>
 <br>
<font face="arial" size=2>WEB<br>
  TEMPLATE s1ex1.html<br>
  IMAGEPATH "set in index.html"<br>
  IMAGEURL "set in index.html"<br>
END</font><br>
 <br>
<font face="arial" size=2>LAYER # States<br>
    NAME "KlangValley"<br>
    DATA KlangValley<br>
    STATUS DEFAULT<br>
    TYPE POLYGON<br>
    CLASSITEM "Negeri"<br>
    CLASS<br>
    NAME "KL"<br>
    COLOR 255 255 128<br>
    OUTLINECOLOR 0 0 0<br>
  END # end of class object<br>
END # end of layer object</font><br>
 <br>
<font face="arial" size=2>LAYER<br>
  NAME "roads"<br>
  STATUS OFF<br>
  DATA ROAD_GPS<br>
  LABELITEM "Road_name"  <br>
  TYPE LINE<br>
  CLASS<br>
    COLOR 0 0 255<br>
    LABEL<br>
        TYPE TRUETYPE<br>
         ANTIALIAS<br>
 FONT arial<br>
        COLOR 0 0 0<br>
 OUTLINECOLOR 220 220 220<br>
 SIZE 11<br>
 #SIZE MEDIUM<br>
 ANGLE AUTO<br>
 POSITION UC<br>
 OFFSET 0 2       <br>
 buffer 2<br>
    END#label<br>
  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