Opened 4 years ago

Closed 4 years ago

#3867 closed defect (invalid)

SVG use <text> for text

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


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 (1)

comment:1 Changed 4 years ago by TomH

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

First of, this is a mapnik issue so would need to be raised with the mapnik project at

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.