[mapserver-users] Re: FW: [MAPSERV] Fonts and porting from Linux to NT.

Chad Streck chads at adci.com
Wed Apr 18 14:20:16 EDT 2001


I will gladly share it once we get the job that it was built for, or I 
take out the jobs specific items in the demo.  There is a paranoia that 
the competition will see it before then.

Chad

Jeremy wrote:

> Any plans to share this when it's complete? Our GPS gaming site,
> Geocaching.com, is looking for a mapserver that is inexpensive/free, and run
> on the NT/MSSQL platform (which the site runs on). I'm very interested in
> what you're working on.
> 
> Thanks,
> 
> Jeremy
> 
> -----Original Message-----
> From: owner-mapserver-users at lists.gis.umn.edu
> [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Chad Streck
> Sent: Wednesday, April 18, 2001 6:27 AM
> To: Chad Streck
> Cc: Mapserver
> Subject: Re: [MAPSERV] Fonts and porting from Linux to NT.
> 
> 
> Working.  Played with the paths some more and what finally worked is
> when I used / and did not specify the drive.  They looked like this....
> 
> helvbold                /InetPub/wwwroot/maps/fonts/helb____.ttf
> helvbolditalic          /InetPub/wwwroot/maps/fonts/helbi___.ttf
> helvitalic              /InetPub/wwwroot/maps/fonts/heli____.ttf
> helv                    /InetPub/wwwroot/maps/fonts/helr____.ttf
> timesbold               /InetPub/wwwroot/maps/fonts/timb____.ttf
> timesbolditalic         /InetPub/wwwroot/maps/fonts/timbi___.ttf
> timesitalic             /InetPub/wwwroot/maps/fonts/timi____.ttf
> times                   /InetPub/wwwroot/maps/fonts/timr____.ttf
> 
> Thanks,
> Chad
> 
> Chad Streck wrote:
> 
>> I have an application that I developed under Linux/Postgresql using
>> PHP and Mapscript and I'm now porting it to NT/MSSQL7.  I grabbed the
>> binaries of php from php.net and the binary dll for PHP_Mapscript from
>> dmsolutions.  I'm using MSDE for the database server.  PHP appears to
>> be working well, and Mapscript is giving me an error well after it
>> reads in the map file.
>> 
>> Now that you know the environment, here is what I'm getting....
>> 
>> *Fatal error*: MapServer Error in msGetLabelSize(): Could not
>> find/open font in *C:\inetpub\wwwroot\lib/mapscript.php* on line *202*
>> 
>> ...where line 202 is a $mapobj->draw().  I believe I changed all the
>> paths.  I included part of the map file and fonts.list file.  I've
>> played with the fonts list file to include only single back slashes,
>> no quotes and relative paths.  This is working fine under Linux.  Do
>> any of you have an idea of what could be wrong?
>> 
>> Tanks,
>> Chad Streck
>> 
>> Map file parts..
>> =========================
>> map
>>  extent 263354 548123 967555 1108974
>>  fontset "C:\InetPub\wwwroot\maps\etc\fontsw.list"
>>  name "Maricopa County"
>>  scale 6000000
>>  shapepath "C:\InetPub\shape"
>>  size 600 400
>>  symbolset "C:\InetPub\wwwroot\maps\etc\symbol.sym"
>>  units feet
>>       ......
>>  layer
>>   data "etak\az\county"
>>   labelitem "feaname"
>>   minscale 75000
>>   name "County"
>>   status default
>>   type polygon
>>   class
>>     color 225 225 225
>>     outlinecolor 150 150 150
>>     label
>>       antialias
>>       buffer 3
>>       color 150 150 150
>>       font "helv"
>>       mindistance 100
>>       minfeaturesize 90
>>       outlinecolor 255 255 255
>>       position cc
>>       size 10
>>       type TRUETYPE
>>     end
>>   end
>>  end
>> 
>> 
>> fontsw.list
>> ====================
>> arialbold               "C:\\InetPub\\wwwroot\\maps\\fonts\\arib____.ttf"
>> arial                   "C:\\InetPub\\wwwroot\\maps\\fonts\\arir____.ttf"
>> helvbold                "C:\\InetPub\\wwwroot\\maps\\fonts\\helb____.ttf"
>> helvbolditalic          "C:\\InetPub\\wwwroot\\maps\\fonts\\helbi___.ttf"
>> helvitalic              "C:\\InetPub\\wwwroot\\maps\\fonts\\heli____.ttf"
>> helv                    "C:\\InetPub\\wwwroot\\maps\\fonts\\helr____.ttf"
>> timesbold               "C:\\InetPub\\wwwroot\\maps\\fonts\\timb____.ttf"
>> timesbolditalic         "C:\\InetPub\\wwwroot\\maps\\fonts\\timbi___.ttf"
>> timesitalic             "C:\\InetPub\\wwwroot\\maps\\fonts\\timi____.ttf"
>> times                   "C:\\InetPub\\wwwroot\\maps\\fonts\\timr____.ttf"
>> 
>> 




More information about the mapserver-users mailing list