The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Fix skew for shapes with tied handles

These changes was commited to the Birdfont repository Fri, 26 Jun 2015 20:05:05 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
author Johan Mattsson <johan.mattsson.m@gmail.com>
Fri, 26 Jun 2015 20:05:05 +0000 (22:05 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Fri, 26 Jun 2015 20:05:05 +0000 (22:05 +0200)
commit 3e2f120c8bf0f7af69a25a0881d50f25ef02a43b
tree b66fbf71948a8dcc4bf595a8ef8bd6366a6765ca
parent d58449957c71ab8c0c7755b8f60c47dc70e8d1ea
Fix skew for shapes with tied handles
Fixes bug #91

libbirdfont/SvgParser.vala
--- a/libbirdfont/SvgParser.vala +++ b/libbirdfont/SvgParser.vala @@ -291,6 +291,11 @@ double dx, dy; Font font = BirdFont.get_current_font (); Glyph glyph = MainWindow.get_current_glyph (); + + foreach (EditPoint ep in path.points) { + ep.tie_handles = false; + ep.reflective_point = false; + } foreach (EditPoint ep in path.points) { apply_matrix_on_handle (ep.get_right_handle (), a, b, c, d, e, f);