[metapost] wrong bounding box with pencircle

Stephan Hennig mailing_list at arcor.de
Sat Jun 22 01:00:47 CEST 2013


Hi,

in the attached example bounding boxes are not as expected for a squared
and a butt linecap.  (The line is drawn with a pencircle.)  Is this a
known issue?

Best regards,
Stephan Hennig


def test =
  draw quartercircle scaled 100 withpen pencircle scaled 20;
  draw bbox currentpicture dashed evenly withcolor .5;
enddef;

bboxmargin := 0;

beginfig(1);
  interim linecap := butt;
  test;
endfig;

beginfig(2);
  interim linecap := squared;
  test;
endfig;

beginfig(3);
  interim linecap := rounded;
  test;
endfig;

end


More information about the metapost mailing list