The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Resize stroked paths

These changes was commited to the Birdfont repository Thu, 30 Jun 2016 11:02:42 +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>
Thu, 30 Jun 2016 11:02:42 +0000 (13:02 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Thu, 30 Jun 2016 11:02:42 +0000 (13:02 +0200)
commit 01598bd5bb45e9323ff395fbf402c855e3a06a3b
tree aad58d55cf63ac21fa93ddf68ed408a4db33614a
parent 13bfc25d39a7537c7c2f8dd5d95cac25c09b211b
Resize stroked paths

libbirdfont/ResizeTool.vala
--- a/libbirdfont/ResizeTool.vala +++ b/libbirdfont/ResizeTool.vala @@ -278,6 +278,7 @@ path.transform (matrix); path.rotation += angle; rotation = path.rotation; + path.reset_stroke (); } } @@ -405,6 +406,7 @@ transform.resize (ratio_x, ratio_y, x, y); Matrix matrix = transform.get_matrix (); path.transform (matrix); + path.reset_stroke (); } } @@ -554,6 +556,7 @@ Path p = ((PathObject) path).get_path (); SvgParser.apply_matrix (p, 1, 0, s, 1, 0, 0); p.skew = skew; + p.reset_stroke (); path.update_boundaries_for_object (); } }