Ticket #2480 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

Label style not supporting outline color

Reported by: aboudreault Owned by: aboudreault
Priority: normal Milestone: 1.6.0
Component: OGR_SF Version: unspecified
Severity: normal Keywords:
Cc: dmorissette

Description

Label style doesn't support outline color (different from halo (or shadow) color). I suggest to add this style.

Attachments

outlineColor.patch Download (1.7 KB) - added by aboudreault 5 years ago.
Patch for the label outline color support

Change History

Changed 5 years ago by dmorissette

This is related to the following MITAB bug:  http://bugzilla.maptools.org/show_bug.cgi?id=1921

The Label Tool's "b:" parameter in Style Strings needs to be changed to specify a background box color (no longer related to Halo), and a new "o:" parameter is added to specify the outline/halo color.

Support for this needs to be implemented in ogrfeaturestyle.cpp and the following updates should be made to the Feature Style Spec doc at  http://www.gdal.org/ogr/ogr_feature_style.html:

b: Text Box Background Color - Color of the filled box to draw behind the label, no box drawn if not set

o: Text Outline Color - Color of the text outline (halo in MapInfo? terminology), no outline if not set

Changed 5 years ago by aboudreault

Patch for the label outline color support

Changed 5 years ago by aboudreault

I joined the patch with the support. Basicly, it just add the Label style type "OGRSTLabelOColor" and the associated methods.

Changed 5 years ago by dmorissette

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

I have committed the patch adding support for outline color in r14984, and committed the updates to the ogr_feature_style.html in r14985.

Note: See TracTickets for help on using tickets.