Ticket #2417 (closed enhancement: fixed)

Opened 5 years ago

Last modified 4 years ago

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

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

Change History

Changed 5 years ago by tbonfort

example output

Changed 5 years ago by tbonfort

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

Changed 5 years ago by tbonfort

  • owner changed from tbonfort to sdlime
  • component changed from AGG to MapScript

passing over to mapscript maintainers

Changed 5 years ago by sdlime

  • owner changed from sdlime to dmorissette
  • component changed from MapScript to MapScript-PHP

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

Steve

Changed 5 years ago by dmorissette

  • cc dmorissette added
  • owner changed from dmorissette to aboudreault
  • milestone changed from 5.2.1 release to 5.4 release

Assigned to Alan to add outlinewidth to labelObj in PHP MapScript?

Changed 5 years ago by aboudreault

The changes have been made in PHP/MapScript.

Changed 5 years ago by tbonfort

  • component changed from MapScript-PHP to MapServer Documentation

off to documentation then. thanks Alan.

Changed 5 years ago by tbonfort

  • owner changed from aboudreault to jmckenna

Changed 4 years ago by tbonfort

  • status changed from new to closed
  • resolution set to fixed

docs updated.

Note: See TracTickets for help on using tickets.