Clone in a terminal:
Commit 7cf7f71
Johan Mattsson - 2016-06-30T09:36:23+00:00
7cf7f71345e7ef292a8ebd4d916b8502e17436e4johan.mattsson.m@gmail.com

Fix generated italics

Changed files (3)

Diff

diff --git a/libbirdfont/OverViewItem.vala b/libbirdfont/OverViewItem.valaindex 3459617..cbd3b18 100644--- a/libbirdfont/OverViewItem.vala+++ b/libbirdfont/OverViewItem.vala@@ -84,6 +84,15 @@ public class OverViewItem : GLib.Object { 		draw_background ();		 	} +	public void clear_cache () {+		cache = null;+		+		if (glyphs != null) {+			Glyph g = ((!) glyphs).get_current ();+			g.overview_thumbnail = null;+		}+	}+ 	public void draw_glyph_from_font () { 		if (glyphs == null) { 			return;diff --git a/libbirdfont/OverviewTools.vala b/libbirdfont/OverviewTools.valaindex 524ef10..978f578 100644--- a/libbirdfont/OverviewTools.vala+++ b/libbirdfont/OverviewTools.vala@@ -325,10 +325,13 @@ public class OverviewTools : ToolCollection  { 		} 		 		foreach (OverViewItem item in o.visible_items) {-			item.draw_glyph_from_font ();	+			item.clear_cache ();+			item.draw_glyph_from_font (); 		} 		 		o.undo_items.add (ui);+		+		MainWindow.get_overview ().update_item_list (); 		GlyphCanvas.redraw (); 	} 	diff --git a/libbirdfont/SvgParser.vala b/libbirdfont/SvgParser.valaindex 3706bdc..7f2161a 100644--- a/libbirdfont/SvgParser.vala+++ b/libbirdfont/SvgParser.vala@@ -336,8 +336,14 @@ public class SvgParser { 		 		foreach (EditPoint ep in path.points) { 			apply_matrix_on_handle (ep.get_right_handle (), a, b, c, d, e, f);-			apply_matrix_on_handle (ep.get_left_handle (), a, b, c, d, e, f);-+			+			EditPointHandle left = ep.get_left_handle ();+			if (left.type == PointType.QUADRATIC || left.type == PointType.LINE_QUADRATIC) {+				ep.get_right_handle ().process_connected_handle ();+			} else {				+				apply_matrix_on_handle (left, a, b, c, d, e, f);+			}+			 			ep.independent_y = font.top_position - ep.independent_y; 			ep.independent_x -= glyph.left_limit; 			

Contact

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