Commit f5d88fb
Fix character set selection and free hand drawing with stroke
Changed files (3)
modifiedlibbirdfont/LanguageSelectionTab.valamodifiedlibbirdfont/StrokeTool.valamodifiedlibbirdfont/TrackTool.vala
Diff
@@ -46,6 +46,8 @@ public class LanguageSelectionTab : Table { void select_language (int row) { string iso_code;+ OverView overview;+ GlyphRange gr; TabBar tb = MainWindow.get_tab_bar (); return_if_fail (0 <= row < DefaultLanguages.codes.size);@@ -53,7 +55,13 @@ public class LanguageSelectionTab : Table { iso_code = DefaultLanguages.codes.get (row); Preferences.set ("language", iso_code); tb.close_display (this);- Toolbox.select_tool_by_name ("custom_character_set");++ overview = MainWindow.get_overview ();+ gr = new GlyphRange ();+ DefaultCharacterSet.use_default_range (gr);+ overview.set_glyph_range (gr);+ OverviewTools.update_overview_characterset ();+ FontDisplay.dirty_scrollbar = true; } public override string get_label () {@@ -1999,6 +1999,13 @@ public class StrokeTool : Tool { side1 = new Path (); side2 = new Path (); + foreach (EditPoint ph in path.points) {+ if (ph.type == PointType.HIDDEN) {+ ph.type = PointType.CUBIC;+ }+ }+ path.remove_deleted_points ();+ if (path.points.size < 2) { return pl; }@@ -221,6 +221,8 @@ public class TrackTool : Tool { foreach (EditPoint e in p.points) { if (e.type == PointType.HIDDEN) { e.type = DrawingTools.point_type;+ e.get_right_handle ().type = DrawingTools.point_type;+ e.get_left_handle ().type = DrawingTools.point_type; } } }