The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Update freehand drawing to work with stroke

Changes made to libbirdfont/Path.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/Path.vala +++ libbirdfont/Path.vala @@ -1467,6 +1467,9 @@ x = quadratic_bezier_path (step, start.x, start.get_right_handle ().x, stop.x); y = quadratic_bezier_path (step, start.y, start.get_right_handle ().y, stop.y); } else if (right == PointType.CUBIC && left == PointType.CUBIC) { + x = bezier_path (step, start.x, start.get_right_handle ().x, stop.get_left_handle ().x, stop.x); + y = bezier_path (step, start.y, start.get_right_handle ().y, stop.get_left_handle ().y, stop.y); + } else if (right == PointType.HIDDEN && left == PointType.HIDDEN) { x = bezier_path (step, start.x, start.get_right_handle ().x, stop.get_left_handle ().x, stop.x); y = bezier_path (step, start.y, start.get_right_handle ().y, stop.get_left_handle ().y, stop.y); } else {