Skip to content

Commit d0043f2

Browse files
committed
Correct scaling of label outline (#4942)
closes #4942
1 parent 3e7ecf7 commit d0043f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maprendering.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ int msDrawTextSymbol(mapObj *map, imageObj *image, pointObj labelPnt, textSymbol
10231023
c = &ts->label->color;
10241024
if(MS_VALID_COLOR(ts->label->outlinecolor))
10251025
oc = &ts->label->outlinecolor;
1026-
ow = ts->label->outlinewidth * ts->scalefactor;
1026+
ow = ts->label->outlinewidth * (ts->textpath->glyph_size / ts->label->size);
10271027
if(!renderer->renderGlyphs) return MS_FAILURE;
10281028
return renderer->renderGlyphs(image,ts->textpath,c,oc,ow);
10291029

0 commit comments

Comments
 (0)