The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Write debug messages to log file

These changes was commited to the Birdfont repository Tue, 14 Oct 2014 18:43:33 +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>
Tue, 14 Oct 2014 18:43:33 +0000 (20:43 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Tue, 14 Oct 2014 18:51:27 +0000 (20:51 +0200)
commit 25e62f44a34a4e23b9aa29e6ce53c891264bf1a3
tree bf1341c00e73993b8f8fcaf10940b1536554b104
parent 52a41d5a85bedc17605a7165a7dbbf9f3d2d26f5
Write debug messages to log file

libbirdfont/BirdFont.vala
libbirdfont/ExportTool.vala
--- a/libbirdfont/BirdFont.vala +++ b/libbirdfont/BirdFont.vala @@ -213,7 +213,7 @@ BirdFont.current_glyph_collection = new GlyphCollection.with_glyph ( '\0', "null"); main_window = new MainWindow (); - // FIXME: create a option for this and structure the log messages + // FIXME: create a option for this and add structure the log messages // init_logfile (); for (int i = 1; i < arg.length; i++) { @@ -397,9 +397,10 @@ BirdFont.logging = args.has_argument ("--log"); #endif - if (BirdFont.logging) { + // FIXME: don't create log files + //if (BirdFont.logging) { init_logfile (); - } + //} if (!args.has_argument ("--no-translation")) { init_gettext ();
--- a/libbirdfont/ExportTool.vala +++ b/libbirdfont/ExportTool.vala @@ -164,6 +164,8 @@ */ internal static void export_all () { Font font = BirdFont.get_current_font (); + + printd ("Exporting all fonts.\n"); if (font.font_file == null) { warning ("Font is not saved."); @@ -380,11 +382,13 @@ File ttf_file; File eot_file; bool done = true; - + try { ttf_file = folder.get_child (current_font.get_full_name () + ".ttf"); eot_file = folder.get_child (current_font.get_full_name () + ".eot"); + printd (@"Writing TTF fonts to $((!) ttf_file.get_path ())\n"); + if (ttf_file.query_exists ()) { ttf_file.delete (); }