The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Convert rectangles to regular paths

These changes was commited to the Birdfont repository Sat, 25 Jun 2016 09:56:43 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
author Johan Mattsson <johan.mattsson.m@gmail.com>
Sat, 25 Jun 2016 09:56:43 +0000 (11:56 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Sat, 25 Jun 2016 09:56:43 +0000 (11:56 +0200)
commit 57c5d0d052b8cfbbcb938822f4737e2e840c6652
tree b5d1fc4e04b4c7a5f51ce888c934a27875e578e7
parent 4327f43f965b4362596c4b3b93ca8206a752fd90
Convert rectangles to regular paths

libbirdfont/SvgParser.vala
--- a/libbirdfont/SvgParser.vala +++ b/libbirdfont/SvgParser.vala @@ -243,7 +243,11 @@ if (t.get_name () == "line") { parse_line (t, pl); - } + } + + if (t.get_name () == "rect") { + parse_rect (t, pl); + } } return LayerUtils.get_all_paths (pl); @@ -803,7 +807,7 @@ } npl.apply_style (style); - append_paths (layer, npl); + append_paths (layer, npl); } private void parse_polygon (XmlElement tag, Layer layer) {