Clone in a terminal:
Commit a66b658
Johan Mattsson - 2013-07-04T08:12:17+00:00
a66b6583ff6d80718a1bbcbfc1d091c10491b66ajohan.mattsson.m@gmail.com

reflection of cubic curve in svg import

Changed files (1)

Diff

diff --git a/libbirdfont/ImportSvg.vala b/libbirdfont/ImportSvg.valaindex b4192b4..c3884f8 100644--- a/libbirdfont/ImportSvg.vala+++ b/libbirdfont/ImportSvg.vala@@ -417,10 +417,10 @@ public class ImportSvg { 					} else { 						cy = -parse_double (c[++i]); 					}-+/* 					px2 = cx; 					py2 = cy;-										+					*/										 					p[pi++] = cx; 					p[pi++] = cy; 					@@ -432,6 +432,9 @@ public class ImportSvg { 						cy = -parse_double (c[++i]); 					} 					+					px2 = cx;+					py2 = cy;+					 					p[pi++] = cx; 					p[pi++] = cy; 					@@ -624,9 +627,9 @@ public class ImportSvg { 				while (is_point (c[i + 1])) { 					command[ci++] = "C"; 					-					// the reflection again+					// the reflection 					cx = 2 * px - px2;-					cy = 2 * py - py2; // if (svg_glyph) ?+					cy = 2 * py - py2; // if (svg_glyph) ?			 					p[pi++] = cx; 					p[pi++] = cy; 

Contact

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