The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Import open SVG paths

These changes was commited to the Birdfont repository Sat, 25 Oct 2014 17:19:05 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Sat, 25 Oct 2014 17:19:05 +0000]

Updated Files

libbirdfont/SvgParser.vala
--- a/libbirdfont/SvgParser.vala +++ b/libbirdfont/SvgParser.vala @@ -126,6 +126,7 @@ PathList pl = new PathList (); foreach (Tag t in tag) { + if (t.get_name () == "g") { parse_layer (t, pl); } @@ -431,10 +432,6 @@ int large_arc; int arc_sweep; double arc_dest_x, arc_dest_y; - - if (d.index_of ("z") == -1 && d.index_of ("Z") == -1) { // ignore all open paths - return path_list; - } font = BirdFont.get_current_font (); @@ -1222,11 +1219,6 @@ if (num_b == 0) { warning ("No SVG data"); - return path_list; - } - - if (b[num_b - 1].type != 'z') { - warning ("Path is open."); return path_list; }