The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Store font weight value in bf fonts

These changes was commited to the Birdfont repository Mon, 03 Nov 2014 15:41:46 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Mon, 03 Nov 2014 15:41:46 +0000]

Updated Files

libbirdfont/BirdFontFile.vala
--- a/libbirdfont/BirdFontFile.vala +++ b/libbirdfont/BirdFontFile.vala @@ -293,6 +293,7 @@ os.put_string (@"<version>$(Markup.escape_text (font.version))</version>\n"); os.put_string (@"<description>$(Markup.escape_text (font.description))</description>\n"); os.put_string (@"<copyright>$(Markup.escape_text (font.copyright))</copyright>\n"); + os.put_string (@"<weight>$(font.weight)</weight>\n"); } public void write_lines (DataOutputStream os) throws GLib.Error { @@ -665,7 +666,11 @@ if (t.get_name () == "ligature") { parse_ligature (t); } - + + if (t.get_name () == "weight") { + font.weight = int.parse (t.get_content ()); + } + TooltipArea.show_text (t_("Loading XML data.")); }