[metapost] draw a single-stroke curve
luigi scarso
luigi.scarso at gmail.com
Sun Feb 5 18:44:44 CET 2012
On Sun, Feb 5, 2012 at 5:36 PM, Qianqian Fang <fangqq at gmail.com> wrote:
> On 02/04/2012 05:27 PM, luigi scarso wrote:
>>
>> What about svg export ?
>
>
> excellent suggestion! I tried an eps2svg script found
> online, and the result is exactly what I need.
>
> The "stroke-expand-to-contour" issue I mentioned
> in the first post was indeed a pstoedit/fontforge issue.
>
> thanks for the input
you can also use metapost to output svg with
outputformat:="svg";
outputtemplate:="%j-%c.svg";
beginfig(1);
pickup pencircle scaled 2pt;
draw (100,0) .. (0,100) .. (-100,0) .. (0,-100) ..cycle shifted (100,100);
endfig;
end
--
luigi
More information about the metapost
mailing list