Permalink
Browse files

Correct scaling of label outline (#4942)

closes #4942
  • Loading branch information...
tbonfort committed Mar 27, 2015
1 parent 3e7ecf7 commit d0043f27538ff70c7911fa22707d4839ccfeae80
Showing with 1 addition and 1 deletion.
  1. +1 −1 maprendering.c
View
@@ -1023,7 +1023,7 @@ int msDrawTextSymbol(mapObj *map, imageObj *image, pointObj labelPnt, textSymbol
c = &ts->label->color;
if(MS_VALID_COLOR(ts->label->outlinecolor))
oc = &ts->label->outlinecolor;
- ow = ts->label->outlinewidth * ts->scalefactor;
+ ow = ts->label->outlinewidth * (ts->textpath->glyph_size / ts->label->size);
if(!renderer->renderGlyphs) return MS_FAILURE;
return renderer->renderGlyphs(image,ts->textpath,c,oc,ow);

0 comments on commit d0043f2

Please sign in to comment.