Anti-aliasing bug (with text/labels)
javerbach at EXTENDTHEREACH.COM
Fri Apr 21 18:01:38 EDT 2006
I have found a bug in Mapserver with anti-aliasing code when
black text (#000000) is always anti-aliased.
The problem is that there is following kind of code in the
mapgd.c::msDrawTextGD, around line 3090
And the GD Manual says:
The string is rendered in the color indicated by the gf color index.
Use the negative of the desired color index to disable anti-aliasing.
However, for pure black the pen is zero and there isn't such a thing as
So black text is always anti-aliased regardless of if you are using
ANTIALIAS FALSE or not.
I have included a small map-file to demonstrate that bug.
SIZE 100 100
EXTENT 0 0 10 10
COLOR 0 0 0
#COLOR 1 1 1
SRC in Action:
Join SRC at Extend 2006 - Disruptive Technology
June 5-7, 2006 at the Hyatt Regency, Huntington Beach, CA
For more details, click here: http://www.extendthereach.com/extend06/
More information about the mapserver-dev