The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Draw quadratc paths with Beziér tool

Changes made to libbirdfont/BezierTool.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/BezierTool.vala +++ libbirdfont/BezierTool.vala @@ -209,8 +209,8 @@ current_point.type = pt; current_point.get_left_handle ().type = pt; current_point.get_right_handle ().type = pt; - current_point.get_left_handle ().convert_to_line (); + current_point.get_right_handle ().convert_to_line (); } @@ -294,6 +294,12 @@ current_path.hide_end_handle = true; current_point.recalculate_linear_handles (); current_path.reset_stroke (); + + if (current_point.type == PointType.QUADRATIC) { + current_path.create_list (); + current_point.get_prev ().get_right_handle ().process_connected_handle (); + } + GlyphCanvas.redraw (); } else if (state == MOVE_HANDLES || state == MOVE_LAST_HANDLE_LEFT