[mapserver-users] Truetype font character (Wingding) as point symbology

Arjen de Korte arjendk at gmx.net
Wed Mar 11 12:07:26 EDT 2009


Dear Mapserver users,

I would like to use a character from the "Wingding" font as a symbol for
points on my map.

In my file with symbology definitions, I have defined this:

SYMBOL
	NAME 'plane'
	TYPE TRUETYPE
	FONT wingding
	CHARACTER ""
END

I have used 61440 + 33 as the character code as described in
http://www.mapserver.org/mapfile/symbology/construction.html.

My list of font definitions contains:

arial           c:\WINDOWS\Fonts\arial.ttf
wingding        c:\WINDOWS\Fonts\wingding.ttf

The class of my layer looks like:

CLASS
	COLOR 255 200 0
	symbol "plane"
END

However, Mapserver displays the "square" (the typical "unknown
character" character). When I change the font to arial the character is
always "&" regardless of the character code! (I have also tried "!"
etc.) It seems only the first character "&" is taken from my symbol
definition instead of the whole definition "". When I use e.g. 

	CHARACTER "X"
	
then it works, but only for arial.

What am I doing wrong?

Thank you in advance for any suggestions.

Greetings,
Arjen.


More information about the mapserver-users mailing list