The Birdfont Source Code
Put text under kerning label
These changes was commited to the Birdfont repository Sat, 28 Mar 2015 22:10:46 +0000.
Contributing
Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
Put text under kerning label
--- a/libbirdfont/KerningDisplay.vala
+++ b/libbirdfont/KerningDisplay.vala
@@ -240,6 +240,8 @@
cr.line_to (x2, 20);
cr.stroke ();
cr.restore ();
+
+ y += 30 * MainWindow.units;
}
y += row_height + 20;
@@ -597,7 +599,6 @@
unichar c;
if (MenuTab.suppress_event) { // don't update kerning while saving font
- warning ("A background thread uses the current font.");
return;
}
--- a/libbirdfont/MenuTab.vala
+++ b/libbirdfont/MenuTab.vala
@@ -438,16 +438,31 @@
}
public static void save_as () {
+ if (MenuTab.suppress_event) {
+ warn_if_test ("Event suppressed");
+ return;
+ }
+
MenuTab.set_save_callback (new SaveCallback ());
MenuTab.save_callback.save_as();
}
public static void save () {
+ if (MenuTab.suppress_event) {
+ warn_if_test ("Event suppressed");
+ return;
+ }
+
MenuTab.set_save_callback (new SaveCallback ());
MenuTab.save_callback.save ();
}
public static void load () {
+ if (MenuTab.suppress_event) {
+ warn_if_test ("Event suppressed");
+ return;
+ }
+
MenuTab.load_callback = new LoadCallback ();
MenuTab.load_callback.load ();
}