The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Merge ../birdfont-2.x

Changes made to libbirdfont/ExportTool.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/ExportTool.vala +++ libbirdfont/ExportTool.vala @@ -1,5 +1,5 @@ /* - Copyright (C) 2012 2014 2015 Johan Mattsson + Copyright (C) 2012 - 2016 Johan Mattsson This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as @@ -18,6 +18,8 @@ namespace BirdFont { public class ExportTool : GLib.Object { + + public static string? error_message = null; public ExportTool (string n) { } @@ -420,8 +422,7 @@ <p class="big"> <span class="capstosmallcaps">OTF</span> features, <span class="swashes">like swashes </span> - <span class="alternates">alternates &amp; </span> - small caps, can be added + <span class="alternates">alternates &amp; </span> small caps, can be added to the font.</span> </p> </div> @@ -581,16 +582,19 @@ OpenFontFormatWriter fo = new OpenFontFormatWriter (f.units_per_em); File file = (!) File.new_for_path (ttf); - File file_mac = (!) File.new_for_path (ttf_mac); + File file_mac = (!) File.new_for_path (ttf_mac); + + error_message = null; try { fo.open (file, file_mac); fo.write_ttf_font (f); fo.close (); } catch (Error e) { - warning (@"Can't write TTF font to $ttf"); + warning (@"Can't create TTF font to $ttf"); critical (@"$(e.message)"); - } + error_message = e.message; + } } static void write_eot (string ttf, string eot) {