[Mapserver-users] Streets text labels: automatic text orientation?
Randy James
rjames57 at yahoo.com
Fri May 30 11:04:38 PDT 2003
Hi
You may need to define the full path to your font list
Cheers
Randy
--- Pedro Salazar <pedro-b-salazar at ptinovacao.pt> wrote:
> Hi,
>
> I follow your indications and I'm getting this error:
>
> msGetLabelSize(): TrueType Font error. Could not
> find/open font
>
> I'm using mapserver on linux with support for TTF.I
> downloaded a exe
> with fonts which I extracted with the tool 'cabextract'.
>
> I have the following lines on my map configuration:
>
> FONTSET "fonts/fonts.list"
> ...
> LAYER
> NAME vias_text
> LABELITEM "NOME"
> CLASSITEM "CATEGORIA"
> TYPE LINE
> DATA vias
> LABELCACHE ON
> STATUS DEFAULT
> CLASS
> OUTLINECOLOR 128 128 128
> COLOR 0 0 0
> LABEL
> COLOR 0 0 0
> POSITION AUTO
> ANGLE AUTO
> ANTIALIAS TRUE
> PARTIALS TRUE
> MINDISTANCE 100
> MINFEATURESIZE AUTO
> TYPE TRUETYPE
> FONT "arial"
> MINSIZE 8
> MAXSIZE 12
> POSITION cc
>
> END
> END
> END
>
> I have my fonts on that directory ("fonts/fonts.list")
> and my fonts.list
> is:
> arial Arial.TTF
> arialbd Arialbd.TTF
> arialbi Arialbi.TTF
> ariali Ariali.TTF
>
> Any idea?
>
> thanks,
> Pedro.
>
>
> On Fri, 2003-05-30 at 17:28, m.spring at gmx.de wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Pedro,
> >
> > you have to use a Truetype font for rendering with
> LABELANGLE AUTO,
> > basis for this is a mapserver compiled with freetype
> support. Check
> > this on the commandline with 'mapserv -v', this should
> say
> >
> > SUPPORTS=TTF
> >
> > Then, instead of
> >
> > SIZE TINY
> >
> > use
> >
> > TYPE TRUETYPE
> > FONT "arial"
> > MINSIZE 8
> > MAXSIZE 12
> > POSITION cc
> >
> > and don't forget to have "arial" defined in your
> FONTSET.
> >
> > Markus
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.0.6 (GNU/Linux)
> > Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy
> Guard <http://www.gnupg.org/>
> >
> >
>
iD8DBQE+14adxxUzQSse11ARAgYPAJ9vti28Is6tjjyQ1cjVXYzwFnrn5gCdGbe+
> > AQLG6k8mD5fp4bQ2axQ+fiQ=
> > =ak4P
> > -----END PGP SIGNATURE-----
> --
> PS
> pedro-b-salazar at ptinovacao.pt
> PGP:0E129E31D803BC61
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
More information about the MapServer-users
mailing list