Clone in a terminal:
Commit 03e9b8b
Johan Mattsson - 2016-07-06T22:02:40+00:00
03e9b8be11bff02f94ca68965fbb32ad9a28ff44johan.mattsson.m@gmail.com

Fix SVG format setting

Changed files (2)

Diff

diff --git a/libbirdfont/SvgParser.vala b/libbirdfont/SvgParser.valaindex caf740c..2538ad4 100644--- a/libbirdfont/SvgParser.vala+++ b/libbirdfont/SvgParser.vala@@ -158,10 +158,6 @@ public class SvgParser { 				has_format = true; 			} 		}-		-		if (format != SvgFormat.NONE) {-			parser.set_format (format);-		}  		// parse the file 		if (!has_format) {@@ -1138,13 +1134,13 @@ public class SvgParser { 		} 		 		move_and_resize (bezier_points, points, svg_glyph, units, glyph);-		path_list = create_svg_paths (d, format);+		path_list = create_svg_paths (d);  		// TODO: Find out if it is possible to tie handles. 		return path_list; 	} 	-	public PathList create_svg_paths (string path_data, SvgFormat format) {+	public PathList create_svg_paths (string path_data) { 		Gee.ArrayList<Points> points_set = SvgFile.parse_points (path_data, format); 		PathList path_list = new PathList (); 		diff --git a/libsvgbird/SvgFile.vala b/libsvgbird/SvgFile.valaindex 568375d..65d1073 100644--- a/libsvgbird/SvgFile.vala+++ b/libsvgbird/SvgFile.vala@@ -870,8 +870,6 @@ public class SvgFile : GLib.Object { 		}  		if (format == SvgFormat.ILLUSTRATOR) {-			print ("Remove first");-			 			Gee.ArrayList<Points> illustrator_path_data = new Gee.ArrayList<Points> (); 			 			foreach (Points p in path_data) {@@ -914,8 +912,9 @@ public class SvgFile : GLib.Object { 		return double.parse ((!) s); 	} 	-	// FIXME: rename to instructions-	public static void get_bezier_points (string point_data, out BezierPoints[] bezier_points, out int points, bool svg_glyph) {+	public static void get_bezier_points (string point_data, +		out BezierPoints[] bezier_points, out int points, bool svg_glyph) {+			 		double px = 0; 		double py = 0; 		double px2 = 0;

Contact

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