Commit 98b5037
Fill glyph when path is closed in track and pen tool
Changed files (4)
modifiedlibbirdfont/PathList.valamodifiedlibbirdfont/PenTool.valamodifiedlibbirdfont/TrackTool.valamodifiedscripts/export.sh
Diff
@@ -40,6 +40,7 @@ public class PathList : GLib.Object { public Path get_first_path () { if (unlikely (paths.length () == 0)) { warning ("No path");+ return new Path (); } return paths.first ().data;@@ -733,6 +733,7 @@ public class PenTool : Tool { path.points.remove_link (path.points.last ()); path.close ();+ glyph.close_path (); force_direction (); @@ -112,6 +112,7 @@ public class TrackTool : Tool { if (button == 1 && draw_free_hand) { add_endpoint_and_merge (x, y); }+ BirdFont.get_current_font ().touch (); }); move_action.connect ((self, x, y) => {@@ -187,6 +188,8 @@ public class TrackTool : Tool { glyph.close_path (); } }+ + glyph.clear_active_paths (); } else { add_corner (x, y); }@@ -25,7 +25,7 @@ version=$(cat ../../scripts/version.py | grep "VERSION = '" | grep -v "SO_VERSIO rm -rf birdfont-$version -git clone --no-hardlinks --local $rep+git clone --depth 1 --no-hardlinks --local $rep mv birdfont birdfont-$version