mapnik-org/mapnik — Issue #737: Shield/text misalignment
Author: artemp
Created: 2011-10-11 08:09:56+00:00
State: open
Labels: Core_Library

Shields and shield text in trunk seems consistently misaligned with respect to each other. The shield is always 1px too far to the left/top.

Before trunk there was a variable alignment between shield and text, where one was snapped to the pixel grid and the other wasn't. This means that before trunk, sometimes the shield/text aligns fine and in other spots it's off a bit.

r2198 fixed this for trunk, and performs fine. However, r2199 then reintroduced this 1px offset. For non-svg at least, r2199 needs to be reverted. If svg alignment was the cause r2199, it needs to be put back for bitmap symbols only.

I'm also including a backport of r2198+r2222 for 0.7.2-dev. Once this alignment is fixed in trunk, please consider this patch for 0.7.2-dev so they align shields the same again.

Example from osm.org (mapnik2):
[[Image(mapnik2-5418.png)]]

Example from 0.7.2-dev with the backport patch:
[[Image(backport-5418.png)]]