AW: [Mapserver-users] TTF support or not?

Vincent Schut schut@sarvision.com
Thu, 22 May 2003 11:52:23 +0200


Well, not entirely true I think...
You do not need to recompile mapserver, but you need a different libgd. Now 
you appear to have one that does not support truetype. You need one that 
does.
I don't know on what system / kind of linux (redhat, suse, mandrake, ....) you 
are, and where your current libgd comes from. But it's best (for mapserver) 
to have a pretty recent version, so you might try to upgrade it, if there is 
an upgrade available for your system. Otherwise you (or someone else) needs 
to compile libgd and include truetype support (--with-freetype).
I don't think you need to recompile mapserver after that, so you can still use 
the version you have now.
You can get the gd source code from http://www.boutell.com/gd/ .

Regards,
Vincent Schut.

On Thursday 22 May 2003 11:20, Schlemmer Thilo wrote:
> Thanks for your reply, Bjoen and Vincent...
>
> I guess, I understand, what my problem is.
> I have to recompile my mapserver-version with a gdlib that suport
> freetype....
> But unfortunately i can't recompile my mapserver, because  i don't know how
> to compile (never tried before) and where i get all the packages for
> oracle-support and so on.
>
> I guess, i have to wait until someone of my colleagues return from holiday
> ;) and exercise with a different (... but running ttf-support)
> mapserver-version.
>
> Thanks a lot for your help.
>
> Thilo
>
> > -----Ursprüngliche Nachricht-----
> > Von:	Björn Platzen [SMTP:bplatzen@sosnetz.de]
> > Gesendet am:	Donnerstag, 22. Mai 2003 10:09
> > An:	Schlemmer Thilo; Mapserver-Users-Request@Lists. Gis. Umn. Edu
> > (E-Mail)
> > Betreff:	Re: [Mapserver-users] TTF support or not?
> >
> > Hi Thilo,
> >
> > > I get this error message:
> > > "msGetLabelSize(): TrueType Font error. libgd was not built with
> > > TrueType font support"
> > >
> > > but my version of mapserver should support TTF:
> > > "MapServer version 3.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> > > SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7
> > > INPUT=ORACLESPATIAL INPUT=OGR INPUT=SHAPEFILE"
> >
> > You have compiled mapserver --with-freetype, but your gdlib doesn't
> > support freetype.
> > try ldd libgd.so.2 (or however your gd is called) and you should get the
> > following:
> >
> > codefabrik:/usr/lib # ldd libgd.so.2
> >         libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40067000)
> >         libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40076000)
> >         libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40136000)
> > ------->libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40155000)
> >         libpng.so.2 => /usr/lib/libpng.so.2 (0x40196000)
> >         libz.so.1 => /lib/libz.so.1 (0x401c7000)
> >         libm.so.6 => /lib/libm.so.6 (0x401d6000)
> >         libc.so.6 => /lib/libc.so.6 (0x401f9000)
> >         libdl.so.2 => /lib/libdl.so.2 (0x40321000)
> >         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
> >
> > If not, then your gdlib is not compiled with freetype-support. IMHO
> > Mapserver supports freetype through gd.
> >
> > hth, Bjoern.
> >
> > --
> > small office solutions
> > info@sosnetz.de  -  http://www.sosnetz.de
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users@lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

-- 
______________________________________
Vincent Schut
Sarvision B.V.
Wageningen, The Netherlands
www.sarvision.com

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users