Commit 7cf7f71
Fix generated italics
Changed files (3)
modifiedlibbirdfont/OverViewItem.valamodifiedlibbirdfont/OverviewTools.valamodifiedlibbirdfont/SvgParser.vala
Diff
@@ -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;@@ -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 (); } @@ -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;