Clone in a terminal:
Commit 8c58c58
Johan Mattsson - 2014-08-30T22:13:56+00:00
8c58c58236048a86c30b81df575e4af996b0b54djohan.mattsson.m@gmail.com

Icon for auto trace resolution

Changed files (3)

Diff

diff --git a/icons/auto_trace_resolution.png b/icons/auto_trace_resolution.pngnew file mode 100644index 0000000..1557507Binary files /dev/null and b/icons/auto_trace_resolution.png differdiff --git a/libbirdfont/BackgroundImage.vala b/libbirdfont/BackgroundImage.valaindex 62e4b87..ef54ab2 100644--- a/libbirdfont/BackgroundImage.vala+++ b/libbirdfont/BackgroundImage.vala@@ -102,6 +102,8 @@ public class BackgroundImage { 		bg.img_rotation = img_rotation;  		bg.threshold = threshold;+		bg.high_contrast = high_contrast;+		bg.trace_resolution = trace_resolution;  		return bg;		 	}@@ -814,7 +816,7 @@ public class BackgroundImage { 				if (is_traced (i)) { 					Path np = generate_path (outline_img, s, w, h, len); 					-					if (np.points.size > 3) {+					if (np.points.size >= 3) { 						if (Path.is_counter (pl, np)) { 							np.force_direction (Direction.COUNTER_CLOCKWISE); 						} else {diff --git a/libbirdfont/DrawingTools.vala b/libbirdfont/DrawingTools.valaindex b930355..58d14d7 100644--- a/libbirdfont/DrawingTools.vala+++ b/libbirdfont/DrawingTools.vala@@ -883,6 +883,7 @@ public class DrawingTools : ToolCollection  { 			if (bg != null) { 				b = (!) bg; 				b.set_trace_resolution (auto_trace_resolution.get_value ());+				b.update_background (); 			} 		}); 		

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112