[mapserver-users] Correct Fonts.list syntax

Ed McNierney ed at topozone.com
Wed Jul 25 11:05:20 EDT 2001


Mark -
 
Using the same config (Win2K, IIS5, MS 3.4) this setup works:
 
In your MAP file:
 
FONTSET symbols/fonts.list

The contents of symbols/fonts.list are:
 
arial arial.ttf
times times.ttf
palatino pala.ttf
 
Be careful about relative pathnames.  I'm not 100% certain, but I
believe that when the MapServer CGI .EXE is run by IIS in response to a
form submission from an HTML page, the current directory for MapServer
is the local directory in which the HTML page lived.  Most implementors
copy the samples and put the MAP and template files in the same
directory, which is fine.  In that case, the symbols/fonts.list path is
relative to that directory (just as the SYMBOLSET pathname is).
 
    - Ed


Ed McNierney 
Chief Mapmaker 
TopoZone.com 
ed at topozone.com 
(978) 251-4242 

-----Original Message-----
From: Mark Abernathy [mailto:WMABERN at gwm.sc.edu]
Sent: Wednesday, July 25, 2001 9:26 AM
To: mapserver-users at lists.gis.umn.edu
Subject: [mapserver-users] Correct Fonts.list syntax


Hi,
I'm trying to be able to use truetype fonts on my map server as symbols
and in the legend. I have been unable to get the truetype fonts to work.
I have followed all the examples and instructions on this I can find.
I'm using win 2000 and IIS5. Map Serv 3.4. I have the lines in the .map
file etc... Maybe I am using the wrong syntax/layout/format for the
fonts.list file.  I have tried all the examples of this file I can find.
If anyone could send me a working version of fonts.list, I would REALLY
appreciate it!
wmabern at gwm.sc.edu <mailto:wmabern at gwm.sc.edu> 
 
Here is the begining of my map file. The map server works without the "
" on the path and the leading forward slashes. It doesn't work with
them.
 
# Start of map file
#
NAME MAPSERV
STATUS ON
SIZE 600 600

SYMBOLSET symbols/symbols_ms34.sym
FONTSET AeroFonts/fonts.list
~~~~~~~~~~~~~
Thanks.  Mark
 
 
 
William M. Abernathy
I2Media Group
Computer Services
University of South Carolina
803-777-7366
wmabern at gwm.sc.edu <mailto:wmabern at gwm.sc.edu> 
http://i2media.csd.sc.edu <http://i2media.csd.sc.edu> 
 
http://www.i2alliance.sc.edu/ecard.asp?id=808
<http://www.i2alliance.sc.edu/ecard.asp?id=808> 





More information about the mapserver-users mailing list