The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Remove old font size in kerning tab

These changes was commited to the Birdfont repository Sat, 07 Mar 2015 20:13:22 +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>
Sat, 07 Mar 2015 20:13:22 +0000 (21:13 +0100)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Sat, 07 Mar 2015 20:13:22 +0000 (21:13 +0100)
commit 77b5d44708b791bbff6f920424a00bef20ba8f88
tree 61d2a2f09a547d96e6e55c03f878a0fe3a1f2e28
parent 825067c32bd5e02cd107d2f2f2027aedb6595f95
Remove old font size in kerning tab

libbirdfont/KerningTools.vala
--- a/libbirdfont/KerningTools.vala +++ b/libbirdfont/KerningTools.vala @@ -86,56 +86,7 @@ d.insert_unichar (); }); kerning_tools.add_tool (insert_unicode); - - SpinButton font_size1 = new SpinButton ("kerning_font_size_one", t_("Font size")); - - font_size1.set_max (9); - font_size1.set_min (0.1); - font_size1.set_value_round (0.5); - - if (Preferences.get ("kerning_font_size_one_settings") != "") { - font_size1.set_value (Preferences.get ("kerning_font_size_one_settings")); - } - - font_size1.select_action.connect ((self) => { - Glyph g = MainWindow.get_current_glyph (); - KerningTools.font_size = font_size1.get_value (); - g.update_view (); - }); - - font_size1.new_value_action.connect ((self) => { - Glyph g = MainWindow.get_current_glyph (); - KerningTools.font_size = font_size1.get_value (); - g.update_view (); - Preferences.set ("kerning_font_size_one_settings", font_size1.get_display_value ()); - }); - - kerning_tools.add_tool (font_size1); - - SpinButton font_size2 = new SpinButton ("kerning_font_size_two", t_("Font size ")); - - font_size2.set_max (9); - font_size2.set_min (0.1); - font_size2.set_value_round (1); - - if (Preferences.get ("kerning_font_size_two_settings") != "") { - font_size2.set_value (Preferences.get ("kerning_font_size_two_settings")); - } - - font_size2.new_value_action.connect ((self) => { - Glyph g = MainWindow.get_current_glyph (); - KerningTools.font_size = font_size2.get_value (); - g.update_view (); - Preferences.set ("kerning_font_size_two_settings", font_size2.get_display_value ()); - }); - - font_size2.select_action.connect ((self) => { - Glyph g = MainWindow.get_current_glyph (); - KerningTools.font_size = font_size2.get_value (); - g.update_view (); - }); - kerning_tools.add_tool (font_size2); - + kerning_tools.set_persistent (false); kerning_tools.set_unique (false);