Clone in a terminal:
Commit ebf377d
Johan Mattsson - 2014-08-05T17:09:05+00:00
ebf377d053a705e568ea040396bf6268e4298e4fjohan.mattsson.m@gmail.com

This commit fixes a bug in the SVG to TTF conversion

Changed files (1)

Diff

diff --git a/libbirdfont/PointConverter.vala b/libbirdfont/PointConverter.valaindex 44e2eb6..c151eed 100644--- a/libbirdfont/PointConverter.vala+++ b/libbirdfont/PointConverter.vala@@ -30,6 +30,7 @@ public class PointConverter { 	public Path get_quadratic_path () { 		int i; 		bool add_more_points = false;+		 		quadratic_path = original_path.copy (); 		 		estimated_cubic_path ();@@ -46,10 +47,14 @@ public class PointConverter {  		foreach (EditPoint e in quadratic_path.points) { 			if (e.get_right_handle ().type == PointType.CUBIC) {-				PenTool.convert_point_type (e, PointType.DOUBLE_CURVE);+				PenTool.convert_point_segment_type (e, e.get_next (), PointType.DOUBLE_CURVE); 			} 		} 	+		PenTool.convert_point_segment_type (quadratic_path.get_first_point (),+			quadratic_path.get_last_point (),+			PointType.DOUBLE_CURVE);+	 		quadratic_path.add_hidden_double_points (); 					 		return quadratic_path;

Contact

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