[mapserver-users] Font as a symbol?
Sacha Fournier
sfournier at dmsolutions.ca
Wed Jun 5 11:12:42 PDT 2002
Hi,
Did you tried to move your symbol definition into a different file and
reference it with SYMBOLSET in your map file ?
I know there was a problem with the keyword TRUETYPE since it have a
different signification in mapfile and symbol file. I'm not sure if it had
been corrected. Just in case try to seperate the symbol definition (if there
is TRUETYPE symbol in it) from your map file.
Sacha
On Wednesday 05 June 2002 02:05 pm, Van Ulden, Joost 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
--
Sacha Fournier
sfournier at dmsolutions.ca
http://www.dmsolutions.ca
tel.: 613.565.5056
fax.: 613.565.0925
More information about the MapServer-users
mailing list