Opened 16 years ago

Closed 16 years ago

#2480 closed enhancement (fixed)

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: Daniel Morissette

Description

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

Attachments (1)

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

Download all attachments as: .zip

Change History (4)

comment:1 by Daniel Morissette, 16 years ago

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

by aboudreault, 16 years ago

Attachment: outlineColor.patch added

Patch for the label outline color support

comment:2 by aboudreault, 16 years ago

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

comment:3 by Daniel Morissette, 16 years ago

Milestone: 1.6.0
Resolution: fixed
Status: newclosed

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.