Ticket #3867 (closed defect: invalid)

Opened 3 years ago

Last modified 3 years ago

SVG use <text> for text

Reported by: j.chetwynd@… Owned by: tom@…
Priority: minor Milestone:
Component: admin Version:
Keywords: Cc:

Description

mapnik should save text, such as town names, street names, etc as <text> which is part of the SVG standard.

this is essential for accessibility, and search, for instance xslt could transform to a glossary.

Change History

comment:1 Changed 3 years ago by TomH

  • Status changed from new to closed
  • Resolution set to invalid

First of, this is a mapnik issue so would need to be raised with the mapnik project at  http://trac.mapnik.org/.

Secondly, as the original author of the cairo (and hence SVG) support in mapnik, I can say that there is a very good reason why text is done the way it is, namely so that the text can be positioned on a character-by-character basis using mapnik's specialised algorithm that was explicitly designed to do high quality placement of text on maps.

Yes, that has annoying side effects, but I suspect that using SVG text-along-path for road names would give worse results that mapnik's specialised algorithm. At the very least it would likely mean that cairo output (SVG, PDF, etc) gave different results to the bitmap output.

Note: See TracTickets for help on using tickets.