mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
+ align text placement to pixel boundary
This commit is contained in:
parent
4a2d1f49a6
commit
71bfe37601
@ -334,8 +334,8 @@ void agg_renderer<T>::process(shield_symbolizer const& sym,
|
||||
// check to see if image overlaps anything too, there is only ever 1 placement found for points and verticies
|
||||
if( text_placement.placements.size() > 0)
|
||||
{
|
||||
double x = text_placement.placements[0].starting_x;
|
||||
double y = text_placement.placements[0].starting_y;
|
||||
double x = floor(text_placement.placements[0].starting_x);
|
||||
double y = floor(text_placement.placements[0].starting_y);
|
||||
int px;
|
||||
int py;
|
||||
box2d<double> label_ext;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user