Commit 7283457
command line parameter to show region boundries
Changed files (4)
modifiedlibbirdfont/Glyph.valamodifiedlibbirdfont/Path.valamodifiedlibbirdfont/Preferences.valamodifiedlibbirdfont/TestCases.vala
Diff
@@ -161,7 +161,6 @@ public class Glyph : FontDisplay { foreach (Path pi in active_paths) { if (pi == p) {- print ("Exists\n"); return; } }@@ -989,8 +989,6 @@ public class Path { xmin = 0; ymax = 0; ymin = 0;- - warning ("No points in region.\n"); } foreach (EditPoint p in points) {@@ -19,7 +19,7 @@ using Gee; public class Preferences { static Gee.HashMap<string, string> data;- public static bool draw_boundries = true; + public static bool draw_boundries = false; public Preferences () { data = new HashMap<string, string> ();@@ -45,6 +45,7 @@ class TestCases { add (test_freetype, "Freetype"); add (test_preview, "Preview"); add (test_kerning, "Kerning");+ add (test_boundries, "Boundries"); } private void add (Callback callback, string name) {@@ -1478,6 +1479,10 @@ class TestCases { kerning_display.set_kerning_pair (sa, sb, ref r, ref l, Random.int_range (0, 300)); } }+ + private static void test_boundries () {+ Preferences.draw_boundries = true;+ } } }