[Mapserver-users] Labels get unreadable over background-color and -image

Stefan Schwarzer stefan.schwarzer at grid.unep.ch
Fri Apr 4 07:28:09 EST 2003


--=====================_7101000==.ALT
Content-Type: text/plain; charset="iso-8859-1"; format=flowed
Content-Transfer-Encoding: quoted-printable

Hi Michael,

yupp, that's it. When I use "ANTIALIAS false" in my map-file, the ugly=20
corona around the labels disappear. Thanks for your help!

Stefan

>Hi Stefan,
>i would assume this is an effect of the anti-aliasing of the truetype
>font labels. Your map image is transparent but only for a certain color
>index, around the labels are these anti-alias halos that don't have the
>transparent index value since their color index is in a range between
>your label color and (?)white.
>Just a guess.
>Cheers, Michael
>
>Stefan Schwarzer schrieb:
>
> > Hi list,
> >
> > here is a question that I raised in similar form already a couple of
> > weeks ago. But nobody seemed to have an answer to it. Can that be?!
> >
> > I attached an screenshot of my map. The blue color is a simple
> > style-background-color:
> > <span style=3D"position: absolute; top: 40px; left: 40px;
> > background-color: #2F72AF"><img name=3D"map1" ....</span>
> > As soon as some labels appear in front of this background-color, they
> > get this strange look, rendering them almost unreadable.
> >
> > Any idea what the cause is and how I can solve this?
> >
> > Thanks for any hints.
> >
> > Best wishes,
> >
> > Stefan
> >
> >
> > _______________________________________
> >
> > Stefan Schwarzer
> > Consultant on GEO
> >
> > UNEP/DEWA/GRID-Geneva
> > Chemin des Anemones 11
> > CH - 1219 Chatelaine
> > Switzerland
> >
> > Tel: (+41) 22.917.83.49
> > Fax: (+41) 22.917.80.29
> >
> > Email: stefan.schwarzer at grid.unep.ch
> > Internet: http://geodata.grid.unep.ch/
> > _______________________________________
>
>--
>-----------------------------------------------------------
>Michael Schulz                                in medias res
>Dipl.-Geologe                              Gesellschaft f=FCr
>                                 Informationstechnologie mbH
>                              Sautierstr. 38, 79104 Freiburg
>                                      0761 55695-95 (Fax 96)
>mschulz at webgis.de                             www.webgis.de

         _______________________________________

         Stefan Schwarzer
         Consultant on GEO

         UNEP/DEWA/GRID-Geneva
         Chemin des Anemones 11
         CH - 1219 Chatelaine
         Switzerland

         Tel: (+41) 22.917.83.49
         Fax: (+41) 22.917.80.29

         Email: stefan.schwarzer at grid.unep.ch
         Internet: http://geodata.grid.unep.ch/
         _______________________________________=20
--=====================_7101000==.ALT
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<body>
<font size=3D3>Hi Michael,<br><br>
yupp, that's it. When I use &quot;ANTIALIAS false&quot; in my map-file,
the ugly corona around the labels disappear. Thanks for your
help!<br><br>
Stefan<br><br>
<blockquote type=3Dcite class=3Dcite cite>Hi Stefan,<br>
i would assume this is an effect of the anti-aliasing of the
truetype<br>
font labels. Your map image is transparent but only for a certain
color<br>
index, around the labels are these anti-alias halos that don't have
the<br>
transparent index value since their color index is in a range
between<br>
your label color and (?)white.<br>
Just a guess.<br>
Cheers, Michael<br><br>
Stefan Schwarzer schrieb:<br><br>
&gt; Hi list,<br>
&gt;<br>
&gt; here is a question that I raised in similar form already a couple
of<br>
&gt; weeks ago. But nobody seemed to have an answer to it. Can that
be?!<br>
&gt;<br>
&gt; I attached an screenshot of my map. The blue color is a simple<br>
&gt; style-background-color:<br>
&gt; &lt;span style=3D&quot;position: absolute; top: 40px; left:=20
40px;<br>
&gt; background-color: #2F72AF&quot;&gt;&lt;img name=3D&quot;map1&quot;
....&lt;/span&gt;<br>
&gt; As soon as some labels appear in front of this background-color,
they<br>
&gt; get this strange look, rendering them almost unreadable.<br>
&gt;<br>
&gt; Any idea what the cause is and how I can solve this?<br>
&gt;<br>
&gt; Thanks for any hints.<br>
&gt;<br>
&gt; Best wishes,<br>
&gt;<br>
&gt; Stefan<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________<br>
&gt;<br>
&gt; Stefan Schwarzer<br>
&gt; Consultant on GEO<br>
&gt;<br>
&gt; UNEP/DEWA/GRID-Geneva<br>
&gt; Chemin des Anemones 11<br>
&gt; CH - 1219 Chatelaine<br>
&gt; Switzerland<br>
&gt;<br>
&gt; Tel: (+41) 22.917.83.49<br>
&gt; Fax: (+41) 22.917.80.29<br>
&gt;<br>
&gt; Email: stefan.schwarzer at grid.unep.ch<br>
&gt; Internet:
<a href=3D"http://geodata.grid.unep.ch/"=
 eudora=3D"autourl">http://geodata.grid.unep.ch/</a><br>
&gt; _______________________________________<br><br>
--<br>
-----------------------------------------------------------<br>
Michael
Schulz&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
in medias res<br>
Dipl.-Geologe&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Gesellschaft f=FCr<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Informationstechnologie mbH<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;
Sautierstr. 38, 79104 Freiburg<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0761 55695-95 (Fax 96)<br>
mschulz at webgis.de&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href=3D"http://www.webgis.de/"=
 eudora=3D"autourl">www.webgis.de</a></blockquote>
<x-sigsep><p></x-sigsep>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>_____________=
__________________________<br><br>
</font><font size=3D2><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;</x-tab><b>Stefan
Schwarzer<br>
</b><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Consultan=
t
on GEO<br><br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>UNEP/DEWA/GRI=
D-Geneva<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Chemin des
Anemones 11<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>CH - 1219
Chatelaine<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Switzerland<b=
r><br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Tel: (+41)
22.917.83.49<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Fax: (+41)
22.917.80.29<br><br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Email:
stefan.schwarzer at grid.unep.ch<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Internet:
<a href=3D"http://geodata.grid.unep.ch/"=
 eudora=3D"autourl">http://geodata.grid.unep.ch/</a><br>
</font><font=
 size=3D3><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>___=
____________________________________</font></body>
</html>

--=====================_7101000==.ALT--




More information about the mapserver-users mailing list