[Gdal-dev] RFC: additional styles for text labels

Andrey Kiselev dron at ak4719.spb.edu
Tue Sep 12 12:07:30 EDT 2006


Folks,

I want to add several new options for text label styles. I need these
styles in order to be compatible with some complex GIS (more precisely
with the file format used by that GIS). The code is ready to be commited
if there will be no objections against these new options.

The new label parameters are:

w		Stretch.
		The stretch factor changes the width of all characters in the
		font by factor percent. For example, setting factor to 150
		results in all characters in the font being 1.5 times (ie.
		150%) wider. The default stretch factor is 100.

st		Strike out text.

h		Colour of the shadow of label.

m:h		New placement mode.  Every word of text attached to polyline
		is placed horizontally in its segment, anchor point is a
		center of segment.

m:a		New placement mode.  Every word of text attached to polyline
		is stretched to fit the segment of polyline and placed along
		that segment. The anchor point is a start of a segment.

p: {10,11,12}	New anchor positions relative to text bottom
		See the image attached. Note, that positions {1,2,3} are
		relative to baseline, not a bottom of text box.

Best regards,
Andrey

-- 
Andrey V. Kiselev
ICQ# 26871517
-------------- next part --------------
A non-text attachment was scrubbed...
Name: anchor-style.png
Type: image/png
Size: 7772 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20060912/c3be4e7f/anchor-style.png


More information about the Gdal-dev mailing list