[mapserver-users] Font as a symbol?

Steve Lime steve.lime at dnr.state.mn.us
Thu Jun 6 12:45:06 EDT 2002


This bug has been fixed in the 3.7 source so it won't matter where you put the definition, but Rich is correct in the workaround for older versions.

Steve

Stephen Lime
Data & Applications Manager

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> Richard Greenwood <Rich at GreenwoodMap.com> 06/05/02 03:24PM >>>
I ran into this also. Putting the truetype symbol definition into the 
SYMBOLSET file, rather than defining it in the .map file fixed it for me.

Rich

At 02:05 PM 6/5/2002 -0400, you wrote:
>We are having no luck trying to use a font for a symbol.  The following is
>the relevant code.  Any suggestions would be helpful.  We do not get any
>errors, the symbols just don't show.
>
>
><symbol definition in mapfile>
>SYMBOL
>   NAME "arial"
>   TYPE TRUETYPE
>   FONT arial
>   FILLED false
>   ANTIALIAS true
>   CHARACTER "a"
>END
>
><layer definition in mapfile>
>LAYER
>   NAME stories
>   METADATA
>     "DESCRIPTION"   "Local Stories"
>     "RESULT_FIELDS" "STORY_ID"
>   END
>   TYPE POINT
>   STATUS DEFAULT
>   TOLERANCE 10
>   TOLERANCEUNITS pixels
>   CLASS
>     NAME "Icon_id"
>     TEMPLATE void
>     SYMBOL 'arial'
>     SIZE 10
>     COLOR 0 0 0
>   END
>END
>
><fonset definition in mapfile>
>FONTSET "c:/inetpub/wwwroot/digilib/mapserver/fonts/fonts.txt"
>
><font mapping in font.txt>
>arial
>c:/zinetpub/wwwroot/digilib/mapserver/fonts/ARIAL.TTF
>
>
>Regards,
>Joost van Ulden
>Data Integration Specialist
>GSC-Pacific Division
>101-605 Robson St.
>Vancouver, BC V6B 5J3
>604.666.7525
>jvanulde at nrcan.gc.ca 


Richard W. Greenwood, PLS
Greenwood Mapping, Inc.
Rich at GreenwoodMap.com 
(307) 733-0203
http://www.GreenwoodMap.com 





More information about the mapserver-users mailing list