Clone in a terminal:
Commit 0065333
Johan Mattsson - 2016-09-20T07:52:23+00:00
0065333eb7e6bd685e342730e9cfd2b8ab74d603johan.mattsson.m@gmail.com

Fix rendering of background glyphs with double curves

Changed files (1)

Diff

diff --git a/libbirdfont/Svg.vala b/libbirdfont/Svg.valaindex 733e602..c06a137 100644--- a/libbirdfont/Svg.vala+++ b/libbirdfont/Svg.vala@@ -151,8 +151,8 @@ public class Svg { 		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 ();

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112