Hi Jochen, Excellent stuff, I applied your patch in r1254. Thanks! Artem 2009/7/19 Jochen Topf <[email protected]>
> Attached is a patch for some text rendering improvements. The > TextSymbolizer > gets the following new parameters: > > * text_convert="none|toupper|tolower" > Convert all text to upper/lower case before rendering. "none" doesn't do > anything with the text and is the default. Works for labels along lines > or at points. > > * line_spacing="<number>" > Add this many pixels space between two lines in text labels that have > been broken into several lines. Default is 0. Doesn't do anything for > labels along lines. > > * character_spacing="<number>" > Add this many pixels space between two characters in a text. Default is 0. > Currently only works for text labels on point geometries. This should > also be implemented for labels along lines, but I'll leave that for > another day. > > * wrap_character="<character>" > Instead of breaking text into lines on spaces, use this character. This > is useful, when you want to make sure that labels are broken at the right > spot. Note that you'll probably want to make wrap_width small so that > your lines are actually broken, otherwise you'll see the wrap_character > in the output. Default is ' ' (space). Doesn't do anything for labels > along lines. > > I have added those parameters to the load_map and save_map functions and > implemented the functionality. I have *not* added this to the python > bindings, because I don't know how they work. > > Jochen > -- > Jochen Topf [email protected] http://www.remote.org/jochen/ +49-721-388298 > > _______________________________________________ > Mapnik-devel mailing list > [email protected] > https://lists.berlios.de/mailman/listinfo/mapnik-devel > >
_______________________________________________ Mapnik-devel mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-devel
