Commit 009b3f1
edit kerning classes on Mac
Changed files (4)
modifiedlibbirdfont/KerningDisplay.valamodifiedlibbirdfont/KerningRange.valamodifiedlibbirdfont/SpinButton.valamodifiedscripts/mac_build.py
Diff
@@ -434,6 +434,7 @@ public class KerningDisplay : FontDisplay { glyph = font.get_glyph_by_name (range.get_char (0)); if (glyph == null) {+ warning ("Kerning range is not represented by a valid glyph."); return; } @@ -33,11 +33,9 @@ public class KerningRange : Tool { panel_press_action.connect ((selected, button, tx, ty) => { KerningDisplay kerning_display = KerningDisplay.get_singleton (); - if (button == 3) {+ if (button == 3 || KeyBindings.modifier == CTRL) { update_kerning_classes ();- }- - if (malformed) {+ } else if (malformed) { kerning_display.show_parse_error (); } else if (button == 1 && !glyph_range.is_empty ()) { kerning_display.add_range (glyph_range);@@ -220,8 +220,12 @@ public class SpinButton : Tool { cr.set_font_size (10); cr.select_font_face ("Cantarell", FontSlant.NORMAL, FontWeight.NORMAL);-- cr.move_to (xt + text_x, yt + text_y);+ + if (BirdFont.mac) {+ cr.move_to (xt + text_x + 2, yt + text_y);+ } else {+ cr.move_to (xt + text_x, yt + text_y);+ } cr.show_text (get_display_value ()); @@ -48,12 +48,13 @@ cc = options.cc cflags = options.cflags ldflags = options.ldflags library_cflags = options.cflags-library_ldflags= options.ldflags+library_ldflags = options.ldflags + " " + """-dynamiclib -Wl,-headerpad_max_install_names,-undefined,dynamic_lookup,-compatibility_version,1.0,-current_version,1.0,-install_name,""" + prefix + """/lib/libbirdfont.dylib""" library = "libbirdfont." + version.SO_VERSION + ".dylib"+library_cflags = "-fno-common -fPIC " + cflags configfile.write_config (prefix) compile_translations()-build.libbirdfont(prefix, cc, cflags, library_ldflags, valac, valaflags, library)+build.libbirdfont(prefix, cc, library_cflags, library_ldflags, valac, valaflags, library) build.birdfont_export(prefix, cc, cflags, ldflags, valac, valaflags, library) build.birdfont_gtk(prefix, cc, cflags, ldflags, valac, valaflags, library)