NopMap wrote:
> So if I understand you correctly, the jump occurs because the sign -1/0/1
> also implicitly controls the alignment while values <-1 and >1 still move in
> pixels?

You are misunderstanding.

dy      default vertical_alignment
= 0     middle
 > 0    bottom
< 0     top

You now probably use:

<TextSymbolizer ... dy="1">

and are seeing a 6 pixel jump?

Try:

<TextSymbolizer ... "dy="1" vertical_alignment="middle">

That should move your label by 1 pixel.

> I could fix the behaviour with an additional parameter "vertical alignment"
> but there is nothing I can do about the off-by-one-pixel problem?

There is no off-by-one-pixel problem with regards to this changed 
vertical_alignment default. There is some variance in the exact 
placement of text (aligned to pixel boundaries?) and symbols (aligned to 
  smaller than a pixel boundary?), I think.

-- 
Lennard
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to