Opened 16 years ago

Closed 15 years ago

#2417 closed enhancement (fixed)

enable soft text outlining in labels

Reported by: tbonfort Owned by: jmckenna
Priority: normal Milestone: 5.4 release
Component: Documentation - MapServer Version: unspecified
Severity: normal Keywords:
Cc: dmorissette

Description

ticket to track changes for adding softer outlines on label text with the AGG renderer

Attachments (1)

fontoutline.png (4.1 KB ) - added by tbonfort 16 years ago.
example output

Download all attachments as: .zip

Change History (9)

by tbonfort, 16 years ago

Attachment: fontoutline.png added

example output

comment:1 by tbonfort, 16 years ago

commited in r7121:

  • mapfile.h gets a new #define OUTLINEWIDTH
  • maplexer.l gets a new line for OUTLINEWIDTH
  • mapserver.h has a new "int outlinewidth" entry for the labelObj typedef
  • mapfile.c is modified for the initialisation, parsing and saving of the labelObj

OUTLINEWIDTH defaults to 1

when rendering, if OUTLINEWIDTH=1, the current "hard" outlining is used. if OUTLINEWIDTH>1 , the softer outlining kicks in.

note that for some reason I don't understand very well yet, best results are obtained when using an odd outlinewidth (3 and 5 are reasonable values)

leaving open until these are completed:

  • documentation
  • mapscript setters and getters to label->outlinewidth
  • my locally generated maplexer.c is confirmed to work on other platforms

comment:2 by tbonfort, 16 years ago

Component: AGGMapScript
Owner: changed from tbonfort to sdlime

passing over to mapscript maintainers

comment:3 by sdlime, 16 years ago

Component: MapScriptMapScript-PHP
Owner: changed from sdlime to dmorissette

Actually should go to PHP/MapScript folks. The Swig version will take this into account automatically. Reassigning to Dan et al.

Steve

comment:4 by dmorissette, 16 years ago

Cc: dmorissette added
Milestone: 5.2.1 release5.4 release
Owner: changed from dmorissette to aboudreault

Assigned to Alan to add outlinewidth to labelObj in PHP MapScript

comment:5 by aboudreault, 16 years ago

The changes have been made in PHP/MapScript.

comment:6 by tbonfort, 16 years ago

Component: MapScript-PHPMapServer Documentation

off to documentation then. thanks Alan.

comment:7 by tbonfort, 16 years ago

Owner: changed from aboudreault to jmckenna

comment:8 by tbonfort, 15 years ago

Resolution: fixed
Status: newclosed

docs updated.

Note: See TracTickets for help on using tickets.