Updated Files
libbirdfont/DrawingTools.vala |
--- a/libbirdfont/DrawingTools.vala
+++ b/libbirdfont/DrawingTools.vala
@@ -70,7 +70,7 @@
Tool help_lines;
Tool xheight_help_lines;
Tool background_help_lines;
-
+
SpinButton x_coordinate;
SpinButton y_coordinate;
SpinButton rotation;
@@ -94,7 +94,11 @@
Tool flip_horizontal;
public ZoomBar zoom_bar;
-
+
+ Tool line_cap_butt;
+ Tool line_cap_round;
+ Tool line_cap_square;
+
public DrawingTools (GlyphCanvas main_glyph_canvas) {
bool selected_line;
@@ -853,7 +857,7 @@
stroke_expander.add_tool (outline);
// set line cap
- Tool line_cap_butt = new Tool ("line_cap_butt", t_("Butt line cap"));
+ line_cap_butt = new Tool ("line_cap_butt", t_("Butt line cap"));
line_cap_butt.select_action.connect ((self) => {
Glyph g;
@@ -868,12 +872,16 @@
StrokeTool.line_cap = LineCap.BUTT;
Font f = BirdFont.get_current_font ();
f.settings.set_setting ("line_cap", @"butt");
+
+ line_cap_butt.selected = true;
+ line_cap_round.selected = false;
+ line_cap_square.selected = false;
GlyphCanvas.redraw ();
});
stroke_expander.add_tool (line_cap_butt);
- Tool line_cap_round = new Tool ("line_cap_round", t_("Round line cap"));
+ line_cap_round = new Tool ("line_cap_round", t_("Round line cap"));
line_cap_round.select_action.connect ((self) => {
Glyph g;
@@ -889,12 +897,16 @@
Font f = BirdFont.get_current_font ();
f.settings.set_setting ("line_cap", @"round");
-
+
+ line_cap_butt.selected = false;
+ line_cap_round.selected = true;
+ line_cap_square.selected = false;
+
GlyphCanvas.redraw ();
});
stroke_expander.add_tool (line_cap_round);
- Tool line_cap_square = new Tool ("line_cap_square", t_("Square line cap"));
+ line_cap_square = new Tool ("line_cap_square", t_("Square line cap"));
line_cap_square.select_action.connect ((self) => {
Glyph g;
@@ -910,6 +922,10 @@
Font f = BirdFont.get_current_font ();
f.settings.set_setting ("line_cap", @"square");
+
+ line_cap_butt.selected = false;
+ line_cap_round.selected = false;
+ line_cap_square.selected = true;
GlyphCanvas.redraw ();
});