[Mapserver-users] rotated label

Bjoern Platzen bplatzen at sosnetz.de
Wed Aug 6 03:29:42 EDT 2003


Hi,

I had the same problem with labels where the Angle came from the dbf. It 
seemed that the combination of gd-2.0.x and freetype2 made this... 
On another machine there was mapserver compiled with gd-1.8 and 
freetype-1.?. My labels looked right there.

I don't know if that helps...

Cheers,

Bjoern

Am Mittwoch, 6. August 2003 02:11 schrieb Siki Zoltan:
> Hi,
>
> I get into trouble with rotated labels, I tried 3.6.5 3.6.6 4.0
> with freetype 2.1.4.
>
> layer definition from the map file:
> LAYER
>     NAME "streat_names"
>     DATA xshp/unev1
>     STATUS ON
>     GROUP "annotation"
>     TYPE LINE
>     LABELITEM "NAME"
>     LABELMAXSCALE 5000
>     CLASS
>         COLOR -1 -1 -1
>         LABEL
>             COLOR 200 0 200
>             ANGLE AUTO
>             SIZE 12
>             FONT timb
>             TYPE TRUETYPE
>         END
>     END
> END
>
> There is a line in fonts.lst file:
> timb /usr/share/fonts/default/TrueType/timb____.ttf
>
> I get text where letters are not rotated but the position is
> changed for each characters e.g. a text at 45 degree
>
> s          or           e
>  a                     l
>   m                   p
>    p                 m
>     l               a
>      e             s
>
> Any idea?
>
> Tankx

-- 
small office solutions
info at sosnetz.de  -  http://www.sosnetz.de




More information about the mapserver-users mailing list