The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Check if a point is inside of a path with curves.

Changes made to libbirdfont/Path.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/Path.vala +++ libbirdfont/Path.vala @@ -2122,8 +2122,13 @@ public static int counters (PathList pl, Path path) { int inside_count = 0; bool inside; + PathList lines = new PathList (); foreach (Path p in pl.paths) { + lines.add (SvgParser.get_lines (path)); + } + + foreach (Path p in lines.paths) { if (p.points.size > 1 && p != path && path.boundaries_intersecting (p)) {