The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Fix rendering of background glyphs with double curves

These changes was commited to the Birdfont repository Tue, 20 Sep 2016 07:52:23 +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>
Tue, 20 Sep 2016 07:52:23 +0000 (09:52 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Tue, 20 Sep 2016 07:52:23 +0000 (09:52 +0200)
commit 0065333eb7e6bd685e342730e9cfd2b8ab74d603
tree 8651067782706e6bd8a890fdbab00603a4083099
parent d972287d552f140ff0b055d69c5ee8b0add2dbc3
Fix rendering of background glyphs with double curves

libbirdfont/Svg.vala
--- a/libbirdfont/Svg.vala +++ b/libbirdfont/Svg.vala @@ -151,8 +151,8 @@ EditPoint middle; double x, y; - x = start.get_right_handle ().x + (end.get_left_handle ().x - start.get_right_handle ().x); - y = start.get_right_handle ().y + (end.get_left_handle ().y - start.get_right_handle ().y); + x = start.get_right_handle ().x + (end.get_left_handle ().x - start.get_right_handle ().x) / 2; + y = start.get_right_handle ().y + (end.get_left_handle ().y - start.get_right_handle ().y) / 2; middle = new EditPoint (x, y, PointType.QUADRATIC); middle.right_handle = end.get_left_handle ().copy ();