The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Fix menu in the kerning tab

These changes was commited to the Birdfont repository Mon, 16 Mar 2015 11:13:37 +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>
Mon, 16 Mar 2015 11:13:37 +0000 (12:13 +0100)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Mon, 16 Mar 2015 11:13:37 +0000 (12:13 +0100)
commit 174563b4ad93b7f31a921280536e2dfdaf56b286
tree 7d726fc795480f39477999d0ec6087e4777a236c
parent c71d2bdb9c8f70194df7f15b1a4b3c5543bb3099
Fix menu in the kerning tab

libbirdfont/KerningDisplay.vala
libbirdfont/LabelTool.vala
libbirdfont/Toolbox.vala
--- a/libbirdfont/KerningDisplay.vala +++ b/libbirdfont/KerningDisplay.vala @@ -207,6 +207,8 @@ cr.fill (); cr.restore (); } + + cr.restore (); } x += w + kern; @@ -253,6 +255,7 @@ row.remove_at (j); } + cr.fill (); cr.restore (); }
--- a/libbirdfont/LabelTool.vala +++ b/libbirdfont/LabelTool.vala @@ -24,7 +24,7 @@ public bool has_delete_button { get; set; } public signal void delete_action (LabelTool self); - double counter_box_width = 22; + double counter_box_width = 24; double counter_box_height = 11; public LabelTool (string label) { @@ -91,7 +91,7 @@ glyph_count = new Text (); glyph_count.set_text (@"$(this.number)"); - text_height = 13; + text_height = 12; glyph_count.set_font_size (text_height); center_x = bgx + (counter_box_width / 2.0 - glyph_count.get_extent () / 2.0);
--- a/libbirdfont/Toolbox.vala +++ b/libbirdfont/Toolbox.vala @@ -478,7 +478,7 @@ TextArea t; if (tool_tip != null && tool_tip != "") { - t = new TextArea (20 * get_scale ()); + t = new TextArea (15 * get_scale ()); t.allocation = new WidgetAllocation.for_area (0, 0, allocation_width, allocation_height); t.set_editable (false); t.set_text ((!) tool_tip);