<div dir="ltr">Check out antigrain (<a href="https://github.com/oncaphillis/agg">https://github.com/oncaphillis/agg</a>), it has this feature and it's public domain.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 4, 2015 at 8:56 PM, Lawrence D'Oliveiro <span dir="ltr"><<a href="mailto:ldo@geek-central.gen.nz" target="_blank">ldo@geek-central.gen.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, 04 Dec 2015 14:53:56 +0800, <a href="mailto:quanzhao198757@sina.com">quanzhao198757@sina.com</a> wrote:<br>
<br>
> I want to use cairo to draw vector-maps, and it shows the strong<br>
> ability to draw lines and polygons etc., but now I need to texturing<br>
> a self-defined pattern(may like -^--^--^--^-) along a winding line<br>
> and fill polygon with it, how should I do?<br>
<br>
</span>You could flatten the path to a sequence of straight lines. Then do<br>
your own patterning along each of those straight lines.<br>
<span class="HOEnZb"><font color="#888888">--<br>
cairo mailing list<br>
<a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a><br>
<a href="http://lists.cairographics.org/mailman/listinfo/cairo" rel="noreferrer" target="_blank">http://lists.cairographics.org/mailman/listinfo/cairo</a></font></span></blockquote></div><br></div>