Commit 5835b87
Copy layer visibility
Changed files (3)
modifiedlibbirdfont/Glyph.valamodifiedlibbirdfont/Layer.valamodifiedlibbirdfont/OpenFontFormat/GlyfData.vala
Diff
@@ -183,6 +183,8 @@ public class Glyph : FontDisplay { PathList stroke; pl = new PathList ();+ + print (@"$(get_name ()) get_visible_paths (): $(get_visible_paths ().size)\n"); foreach (Path p in get_visible_paths ()) { if (p.stroke > 0) { stroke = p.get_stroke ();@@ -41,7 +41,9 @@ public class Layer : GLib.Object { public PathList get_visible_paths () { PathList p = new PathList (); - p.append (paths);+ if (visible) {+ p.append (paths);+ } foreach (Layer sublayer in subgroups) { if (sublayer.visible) {@@ -79,6 +81,8 @@ public class Layer : GLib.Object { layer.name = name; layer.paths = paths.copy ();+ layer.visible = visible;+ foreach (Layer l in subgroups) { layer.subgroups.add (l.copy ()); }@@ -248,12 +248,14 @@ public class GlyfData : GLib.Object { warning (@"Point on point in TTF. Index $(coordinate_y.size - 1)"); // FIXME: distorted shape+ /* if (BirdFont.has_argument ("--test")) { print (glyph.get_name () + "\n"); print (points.get (epi).to_string ()); PenTool.remove_point_simplify (new PointSelection (points.get (epi), p)); return false; }+ */ } prev = rint (e.y * UNITS - font.base_line * UNITS);