The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Fix fill settings

These changes was commited to the Birdfont repository Thu, 23 Apr 2015 08:37:03 +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>
Thu, 23 Apr 2015 08:37:03 +0000 (10:37 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Thu, 23 Apr 2015 08:37:03 +0000 (10:37 +0200)
commit 467a160f70e6d35cca9303a4ddd6efee05d9b1a9
tree 708beab78bff3587398cc54cb48664f4448bcc82
parent 0b2080a4ddfddd9e14e74f37c5e8a8b2dde9011b
Fix fill settings

libbirdfont/OpenFontFormat/GlyfData.vala
libbirdfont/SettingsTab.vala
--- a/libbirdfont/OpenFontFormat/GlyfData.vala +++ b/libbirdfont/OpenFontFormat/GlyfData.vala @@ -247,6 +247,7 @@ if ((int16) y == 0 && (int16) coordinate_x.get (coordinate_y.size - 1) == 0) { warning (@"Point on point in TTF. Index $(coordinate_y.size - 1)"); + // FIXME: distorted shape if (BirdFont.has_argument ("--test")) { print (glyph.get_name () + "\n"); print (points.get (epi).to_string ()); @@ -269,6 +270,7 @@ print (glyph.get_name () + "\n"); print (points.get (epi).to_string ()); + // FIXME: distorted shape PenTool.remove_point_simplify (new PointSelection (points.get (epi), p)); return false; }
--- a/libbirdfont/SettingsTab.vala +++ b/libbirdfont/SettingsTab.vala @@ -89,9 +89,11 @@ Tool fill_open_path = new Tool ("fill_open_path"); fill_open_path.select_action.connect((self) => { - Path.fill_open_path = !Path.fill_open_path; - Glyph g = MainWindow.get_current_glyph (); - g.redraw_area (0, 0, g.allocation.width, g.allocation.height); + Path.fill_open_path = true; + }); + + fill_open_path.deselect_action.connect((self) => { + Path.fill_open_path = false; }); tools.add (new SettingsItem (fill_open_path, t_("Fill open paths.")));