Clone in a terminal:
Commit 4c8d891
Johan Mattsson - 2013-07-05T20:02:27+00:00
4c8d8917fd6f1c3377dbeddba25b81dec3499687johan.mattsson.m@gmail.com

tie handles in svg import

Changed files (1)

Diff

diff --git a/libbirdfont/ImportSvg.vala b/libbirdfont/ImportSvg.valaindex f262299..0dc2b16 100644--- a/libbirdfont/ImportSvg.vala+++ b/libbirdfont/ImportSvg.vala@@ -844,15 +844,13 @@ public class ImportSvg { 	 	static void set_tied_handles (Path path) { 		double a, b;-		double da, db;+		double d;+		 		foreach (EditPoint p in path.points) { 			a = p.get_left_handle ().angle;-			b = p.get_left_handle ().angle;-			-			da = a - b;-			db = a - b;-			-			if (da < 0.0001 || db  < 0.0001) {+			b = p.get_right_handle ().angle;+			d = a - b;+			if (fabs (d) - PI < 0.001) { 				p.set_tie_handle (true); 			} 		}

Contact

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