[metapost] Feature Request: Get envelope of path stroked with arbitrary pen

Shriramana Sharma samjnaa at gmail.com
Fri Feb 9 05:11:11 CET 2018


On 2/9/18, Kevin Keith <krfkeith at gmail.com> wrote:
> Of course, but how does Metapost output pen strokes to eps or svg as it is?
> Surely
> it must already have a mechanism to approximate these higher-order splines
> with
> cubic bezier curves?

AFAIK Metapost only outputs EPS or SVG with *unstroked* paths i.e. the
actual outlines of the strokes are themselves never output. Only the
central path is output and the actual blackened pixels are only ever
computered by the final rasterizer. In case of elliptical/rotated
pens, appropriate transforms are added to the paths so that the final
output *seems* as if it was drawn by such a pen.

-- 
Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा 𑀰𑁆𑀭𑀻𑀭𑀫𑀡𑀰𑀭𑁆𑀫𑀸



More information about the metapost mailing list