Commit 2797ed5
space in file names
Changed files (4)
modifiedbirdfont-export.shmodifiedlibbirdfont/BirdFont.valamodifiedlibbirdfont/ExportTool.valamodifiedlibbirdfont/Font.vala
Diff
@@ -1,4 +1,4 @@ export LD_LIBRARY_PATH="./build/:$LD_LIBRARY_PATH" PKG_PATH=$(dirname "$(readlink -f "$0")") cd "${PKG_PATH}"-./build/bin/birdfont-export $*+./build/bin/birdfont-export $@@@ -41,6 +41,7 @@ public static int run_export (string[] arg) { if (arg.length < 2) { print_export_help (arg);+ return -1; } for (int i = 1; i < arg.length; i++) {@@ -470,9 +470,10 @@ os.put_string ( export_thread = new ExportThread (temp_file, (!) ttf_file.get_path (), (!) eot_file.get_path ()); if (async) {- export_command = @"$(get_birdfont_export ()) --ttf -o $((!) folder.get_path ()) $temp_file";+ export_command = @"$(get_birdfont_export ()) --ttf -o \"$((!) folder.get_path ())\" \"$temp_file\""; try {+ print (export_command); Process.spawn_command_line_async (export_command); } catch (Error e) { stderr.printf (@"Failed to execute \"$export_command\" \n");@@ -166,7 +166,7 @@ public class Font : GLib.Object { } public void set_name (string name) {- string n = name.replace (" ", "");+ string n = name; this.name = n; } @@ -524,10 +524,11 @@ public class Font : GLib.Object { File dir = BirdFont.get_backup_directory (); File? temp_file = null; string backup_file;- + temp_file = dir.get_child (@"$(name).ffi"); backup_file = (!) ((!) temp_file).get_path ();- + backup_file = backup_file.replace (" ", "_");+ write_font_file (backup_file, true); return backup_file;