Re: [OSM-dev] Improved text rendering in Mapnik
Hermann Kraus-2 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. Hi, thanks for this great bunch of features. I especially like the possibility to label boundaries correctly with the displacement parameter. Unfortunately this feature has the side effect that the displacement parameter now depends on line orientation and thus breaks my style where I use the displacement parameter to move labels that they appear above the lines. I would like to see an option like line-orientated-displacement=false or similar to get the old behaviour back if you need it. Best regards, Melchior -- View this message in context: http://gis.19327.n5.nabble.com/Improved-text-rendering-in-Mapnik-tp5730315p5730343.html Sent from the Developer Discussion mailing list archive at Nabble.com. ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Improved text rendering in Mapnik
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: sk...@xover.mud.at Blog: plepe.at | | Twitter: twitter.com/plepe Jabber: sk...@jabber.at | `-' signature.asc Description: Digital signature ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Improved text rendering in Mapnik
I am testing this and got the following error: Traceback (most recent call last): File ./generate_xml.py, line 205, in module serialize(template_xml,options) File ./generate_xml.py, line 81, in serialize mapnik.load_map(m,xml,True) RuntimeError: Unable to process some data while parsing 'osm.xml': * attribute 'unlock-text' with value 'true' at line 6 * attribute 'unlock-text' with value 'true' at line 12 * attribute 'unlock-text' with value 'true' at line 18 * attribute 'unlock-text' with value 'true' at line 57 * attribute 'unlock-text' with value 'true' at line 63 besides this, the text now really looks a lot better! cheers, Martin ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Improved text rendering in Mapnik
On Sat, 13 Oct 2012 14:11:41 +0200, Martin Koppenhoefer dieterdre...@gmail.com wrote: I am testing this and got the following error: [...] * attribute 'unlock-text' with value 'true' at line 6 This is a typo in the documentation. It's unlock-image instead of unlock-text. Should be fixed in a few minutes when github updates the page. BTW: I would propose to discuss issues with no direct relation to OSM on mapnik's mailing list only. Sorry for forgetting to include this notice in the original cross-post. Hermann ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] Improved text rendering in Mapnik
Hi! 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. Hermann ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev