Opened 21 years ago

Closed 19 years ago

Last modified 19 years ago

#367 closed defect (invalid)

Label outlines suck...

Reported by: sdlime Owned by: sdlime
Priority: high Milestone:
Component: MapServer C Library Version: 4.1
Severity: normal Keywords:
Cc:

Description

Outlines around labels often appear incomplete. It's epecially noticeable with
bitmap fonts. See attached image. One solution may be to render in a small image
and use a filter or some specialized algorithm to create the halo. It may be
that we don't draw the text offset correctly. Anyway, it sucks.

Steve

Attachments (1)

test1.png (5.0 KB ) - added by sdlime 21 years ago.
A sample image showing bad outlines.

Download all attachments as: .zip

Change History (5)

by sdlime, 21 years ago

Attachment: test1.png added

A sample image showing bad outlines.

comment:1 by sdlime, 21 years ago

Resolution: fixed
Status: newclosed
I changed the way outlines are produced, offsetting N,S,E,W instead of NE, NW, 
SE, SW. The results look much better although I'm not sure this will work for 
all cases. 

Steve

comment:2 by sdlime, 21 years ago

Cc: morissette@… added
Resolution: fixed
Status: closedreopened
I was wrong, doesn't handle all cases. The only way to fix this is to offset in 
all 8 directions, so that is what has been done in CVS. This is spendy though 
(drawing every friggin piece of text 9 times). Ideally I'd like to modify GD to 
do this more efficiently. For example, it would be nice to be able to use a 
brush to draw the text. That way you could lay down the outline using a 3x3 
brush and then draw the text. I'm gonna leave this one open... 

comment:3 by sdlime, 19 years ago

Resolution: invalid
Status: reopenedclosed
The halo effect is correct now, but slow. DM has a fix for that too so this is
way out of date. Marking as invalid...

Steve

comment:4 by dmorissette, 19 years ago

See bug 1243 for the fix that Steve referred to.
Note: See TracTickets for help on using tickets.