Clone in a terminal:
Commit dd1a273
Johan Mattsson - 2013-09-14T15:26:40+00:00
dd1a2732c56f9fee207f346d3452755d063a1223johan.mattsson.m@gmail.com

gsub

Changed files (3)

Diff

diff --git a/libbirdfont/Argument.vala b/libbirdfont/Argument.valaindex fac2d28..d534ee7 100644--- a/libbirdfont/Argument.vala+++ b/libbirdfont/Argument.vala@@ -236,7 +236,7 @@ public class Argument : GLib.Object { 		stdout.printf (" [" + _("FILE") + "] [" + _("OPTION") + " ...]\n");  		print_padded ("-c, --show-coordinates", _("show coordinate in glyph view"));-		print_padded ("-e, --exit", _("exit if a test case failes"));+		print_padded ("-e, --exit", _("exit if a test case fails")); 		print_padded ("-f, --fatal-warning", _("treat warnings as fatal")); 		print_padded ("-h, --help", _("show this message")); 		print_padded ("-m, --mac", _("enable Machintosh customizations"));diff --git a/libbirdfont/OpenFontFormat/Gsub.vala b/libbirdfont/OpenFontFormat/Gsub.valanew file mode 100644index 0000000..bd5a51c--- /dev/null+++ b/libbirdfont/OpenFontFormat/Gsub.vala@@ -0,0 +1,78 @@+/*+    Copyright (C) 2012, 2013 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 +    published by the Free Software Foundation; either version 3 of the +    License, or (at your option) any later version.++    This library is distributed in the hope that it will be useful, but +    WITHOUT ANY WARRANTY; without even the implied warranty of +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +    Lesser General Public License for more details.+*/+using Math;++namespace BirdFont {++class GsubTable : Table {+	+	public GsubTable () {+		id = "GPOS";+	}+	+	public override void parse (FontData dis) throws Error {+	}++	public void process () throws GLib.Error {+		FontData fd = new FontData ();++		fd.add_ulong (0x00010000); // table version+		fd.add_ushort (10); // offset to script list+		fd.add_ushort (30); // offset to feature list+		fd.add_ushort (44); // offset to lookup list+		+		// script list+		fd.add_ushort (1);   // number of items in script list+		fd.add_tag ("DFLT"); // default script+		fd.add_ushort (8);	 // offset to script table from script list+		+		// script table+		fd.add_ushort (4); // offset to default language system+		fd.add_ushort (0); // number of languages+		+		// LangSys table +		fd.add_ushort (0); // reserved+		fd.add_ushort (0); // required features (0xFFFF is none)+		fd.add_ushort (1); // number of features+		fd.add_ushort (0); // feature index+		+		// feature table+		fd.add_ushort (1); // number of features+		+		fd.add_tag ("clig"); // contextual ligatures, single substitution+		fd.add_ushort (8); // offset to feature+		+		fd.add_ushort (0); // feature prameters (null)+		fd.add_ushort (1); // number of lookups+		fd.add_ushort (0); // lookup indice+		+		// lookup table+		fd.add_ushort (1); // number of lookups+		fd.add_ushort (4); // offset to lookup 1+		+		fd.add_ushort (2); // lookup type // FIXME	+		fd.add_ushort (0); // lookup flags+		fd.add_ushort (1); // number of subtables+		fd.add_ushort (8); // array of offsets to subtables+		+		// MarkFilteringSet ++		fd.append (get_pair_pos_format1 ());+		+		fd.pad ();	+		this.font_data = fd;+	}+}++}diff --git a/scripts/build.py b/scripts/build.pyindex 3e8bcbe..640b1c4 100644--- a/scripts/build.py+++ b/scripts/build.py@@ -41,7 +41,6 @@ def libbirdfont(prefix, cc, cflags, ldflags, valac, valaflags, library): 		--pkg libxml-2.0 \ 		--pkg gio-2.0 \ 		--pkg cairo \-		--pkg libsoup-2.4 \ 		--pkg gdk-pixbuf-2.0""")  	#copy c sources 

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112