Clone in a terminal:
Commit 131a48e
Johan Mattsson - 2016-06-11T10:27:45+00:00
131a48eddd2e3cfa84ce5977b5aa917031b1468ajohan.mattsson.m@gmail.com

Fix size of orientation arrow

Changed files (1)

Diff

diff --git a/libbirdfont/Path.vala b/libbirdfont/Path.valaindex 8d35564..0b1b8ea 100644--- a/libbirdfont/Path.vala+++ b/libbirdfont/Path.vala@@ -346,15 +346,16 @@ public class Path : GLib.Object { 		y = Glyph.yc () - top.y - sin (angle + PI / 2) * 10 * Glyph.ivz (); 		 		if (points.size > 0) {-			cr.save ();-			cr.translate (x, y); 			double inverted_zoom = Glyph.ivz ();-			cr.rotate (-angle);-			cr.translate (-x, -y); -			+			double zoom = 1 / inverted_zoom; 			cr.scale (inverted_zoom, inverted_zoom); 			-			arrow_icon.draw_at_baseline (cr, x, y);+			cr.save ();+			cr.translate (x * zoom, y * zoom);+			cr.rotate (-angle);+			cr.translate (-x * zoom, -y * zoom); +						+			arrow_icon.draw_at_baseline (cr, x * zoom, y * zoom); 			 			cr.restore (); 		}

Contact

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