The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – 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
[Tue, 20 Sep 2016 07:52:23 +0000]

Updated Files

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 ();