Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

SVG use <text> for text #3867

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

SVG use <text> for text #3867

openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: j.chetwynd[at]btinternet.com
[Submitted to the original trac issue database at 7.26am, Monday, 27th June 2011]

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

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

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 7.38am, Monday, 27th June 2011]

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant