Clone in a terminal:
Commit f5d88fb
Johan Mattsson - 2015-05-13T14:00:46+00:00
f5d88fb57de0bff042b1c529588ca9802cc95a1fjohan.mattsson.m@gmail.com

Fix character set selection and free hand drawing with stroke

Changed files (3)

Diff

diff --git a/libbirdfont/LanguageSelectionTab.vala b/libbirdfont/LanguageSelectionTab.valaindex 0e628a1..b8ecf86 100644--- a/libbirdfont/LanguageSelectionTab.vala+++ b/libbirdfont/LanguageSelectionTab.vala@@ -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 () {diff --git a/libbirdfont/StrokeTool.vala b/libbirdfont/StrokeTool.valaindex 9757ce7..be5f7cf 100644--- a/libbirdfont/StrokeTool.vala+++ b/libbirdfont/StrokeTool.vala@@ -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; 		}diff --git a/libbirdfont/TrackTool.vala b/libbirdfont/TrackTool.valaindex 7509f49..bfeacd4 100644--- a/libbirdfont/TrackTool.vala+++ b/libbirdfont/TrackTool.vala@@ -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; 			} 		} 	}

Contact

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