Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way label not rendered on reversed way #1117

Closed
stephankn opened this issue Mar 7, 2012 · 3 comments
Closed

Way label not rendered on reversed way #1117

stephankn opened this issue Mar 7, 2012 · 3 comments

Comments

@stephankn
Copy link

If the way is facing east to west the label is not rendered right. Reversing the way to point from west to east makes the rendering right.

Herm noted that placement tries to reverse the string in case it would render upside down. This might cause problems with unicode strings.

Look at http://c.tile.osm-tools.org/osm_th/18/203121/117166.png to see the correct rendering for สีวลี 06
The others point to the opposite direction and have rendering issues in 0.7. Mapnik2 does not render them at all.
http://c.tile.openstreetmap.org/18/203121/117166.png

with "unifont Medium" the label can be rendered.

This small OSM file contains a way with the label rendered right:
http://www.openstreetmap.org/api/0.6/way/149927352

reversing the way will trigger the problem

@herm
Copy link
Member

herm commented Jun 25, 2012

After we switch to HarfBuzz mapnik will no longer process individual unicode characters in its placement finder but it will use glyphs. So the processing direction should no longer affect the rendering. However it has to be investigated why the label sometimes completely disappears.

@herm
Copy link
Member

herm commented Aug 21, 2012

Closing this ticket as the issue is solved in the harfbuzz branch. Refs #1428.

@herm herm closed this as completed Aug 21, 2012
@stephankn
Copy link
Author

Harfbuzz fixed this issue:

Harfbuff
18_203121_117166_osm-tools_harfbuzz

Mapnik
18_203121_117166_mapnik

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

No branches or pull requests

3 participants