[OSM-dev] Improved text rendering in Mapnik

Stephan Plepelits skunk at xover.htu.tuwien.ac.at
Sat Oct 13 11:05:16 BST 2012


On Sat, Oct 13, 2012 at 03:44:01AM +0200, Hermann Kraus wrote:
> As my Google Summer of Code project I worked on improving Mapnik's text  
> rendering. The most important change was adding support for complex  
> scripts, but I also implemented some other nice features. You can read  
> more about my work here:
> http://mapnik.org/news/2012/10/06/gsoc2012-status9/
> Build instructions are included and I would like to hear about your  
> success stories, but bug reports are also welcome.
Wow, thanks a lot! I was especially waiting for the upright=""
functionality.

In an application I'm planning to use this, I would actually prefer to use
an alternate text if it is turned upside down (because I'd like to print
"<- that way" or "that way ->" depending on rotation).

Something like:
<TextSymbolizer upright="alternate" alternate_text="[name_right]">[name_left]</TextSymbolizer>

or (maybe easier):
<TextSymbolizer upright="only_left">[name_left]</TextSymbolizer>
<TextSymbolizer upright="only_right">[name_right]</TextSymbolizer>

Do you think this would be possible?

greetings,
        Stephan
-- 
Seid unbequem, seid Sand, nicht Öl im Getriebe der Welt! - Günther Eich
,---------------------------------------------------------------------.
| Stephan Plepelits,                                                  |
| Technische Universität Wien   -    Studien Informatik & Raumplanung |
| Projects:                                                           |
| > openstreetbrowser.org > couchsurfing.org > tubasis.at > bl.mud.at |
| Contact:                                                            |
| > Mail: skunk at xover.mud.at > Blog: plepe.at                         |
| > Twitter: twitter.com/plepe > Jabber: skunk at jabber.at              |
`---------------------------------------------------------------------'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20121013/eeee04cf/attachment-0001.pgp>


More information about the dev mailing list