[mapserver-users] Font as a symbol?

Daniel Morissette morissette at dmsolutions.ca
Wed Jun 5 14:14:21 PDT 2002


For the record, this has been fixed only in the 3.7-dev source (CVS)...
so until the 3.7 release is available, then the workaround is to keep
TRUETYPE symbols in a symbolset file as you mentioned.

Daniel


Richard Greenwood wrote:
> 
> 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