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

Andrey Kiselev dron at ak4719.spb.edu
Sat Sep 23 11:34:05 EDT 2006


On Tue, Sep 12, 2006 at 08:07:30PM +0400, Andrey Kiselev wrote:
> 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.

There weren't any objections, so I decided commit these changes. This
doesn't affect backward compatibility and should be pretty harmless.

Best regards,
Andrey

-- 
Andrey V. Kiselev
ICQ# 26871517



More information about the Gdal-dev mailing list