[mapserver-users] using truetype symbols
Sacha Fournier
sfournier at dmsolutions.ca
Mon Jul 22 05:13:14 PDT 2002
Hi Evgeny,
Please make sure your GD is supporting TRUETYPE font. I know that if you use
a distribution recent like RedHAt or Mandrake (maybe some others) it should
be supported by default. If not, please look at your GD Makefile to apply the
change and recompile your GD.
Then, make sure Mapserver is supporting TRUETYPE font. This can be done by
adding this option "--enable-force-freetype1" in your "configure"
Regards,
.
On Sunday 21 July 2002 10:07 am, Evgeny Yacubovich wrote:
> I tried to change the demo so it shows true type symbols instead of circles
> in Airport layer.
> I did the following changes.
>
> 1. Created text file "fonts.list" with one line:
> arial arial.ttf
>
> 2. added the line
> FONTSET "D:\Program Files\Apache Group\Apache\htdocs\demo\fonts\fonts.list"
> after the lines SHAPEPATH and IMAGECOLOR in map section of file demo.map.
> And to be 100% sure I copied arial.ttf file into the same directory.
> The path is OK. I got no error messages.
>
> 3. Created new Symbol description:
> SYMBOL
> NAME 'Evgeny'
> TYPE truetype
> FONT arial
> FILLED FALSE
> ANTIALIAS true
> CHARACTER "B"
> END
>
> 4. In section describing Airports layer I made the following change
> # SYMBOL 'circle'
> SYMBOL 'Evgeny'
> Just trying to show truetype font symbol "B" instead of the circle
>
> And I see nothing in "airport" layer.
> The legend shows line "airport" but also without any symbol.
> But the layer is not empty. The features are just invisible. I even managed
> to query once an invisible airport.
>
> What did I make wrong, or what did I miss?
> Thank you in advance.
>
> Evgeny Yakubovich
--
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