The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Merge ../birdfont-2.x

These changes was commited to the Birdfont repository Mon, 20 Jun 2016 08:10:41 +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, 20 Jun 2016 08:10:41 +0000 (10:10 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Mon, 20 Jun 2016 08:10:41 +0000 (10:10 +0200)
commit 09fe42f3ccc7c931fc27aff4c50a812520df74c3
tree 6165001e226697178163ff25a50bcd9852475731
parent f84b72f61bce35f741514a6f118baec6555ed4c2
parent 48ee365df03de2b2d155c9861519278acd820284
Merge ../birdfont-2.x

libbirdfont/ExportSettings.vala
libbirdfont/ExportTool.vala
--- a/libbirdfont/ExportSettings.vala +++ b/libbirdfont/ExportSettings.vala @@ -121,7 +121,7 @@ svg.updated.connect ((c) => { Font f = BirdFont.get_current_font (); string v = c ? "true" : "false"; - f.settings.set_setting ("export_eot", v); + f.settings.set_setting ("export_svg", v); }); svg.checked = export_svg_setting (font); svg.margin_bottom = margin;
--- a/libbirdfont/ExportTool.vala +++ b/libbirdfont/ExportTool.vala @@ -173,14 +173,14 @@ string fn; int i; - if (fd is Glyph) { + if (fd is GlyphTab || fd is Glyph) { glyph = MainWindow.get_current_glyph (); } else if (fd is OverView) { OverView overview = MainWindow.get_overview (); Glyph? g = overview.get_selected_glyph (); if (g == null) { - warning("No glyhp selected in overview."); + warning("No glyph selected in overview."); return; } @@ -192,6 +192,7 @@ name = glyph.get_name (); if (selected_file == null) { + warning ("No selected file."); return; } @@ -212,7 +213,6 @@ glyph_svg = export_to_string (glyph, false); os = new DataOutputStream (file.create(FileCreateFlags.REPLACE_DESTINATION)); os.put_string (glyph_svg); - } catch (Error e) { stderr.printf (@"Export \"$svg_file\" \n"); critical (@"$(e.message)");