Clone in a terminal:
Commit 3ed3dda
Johan Mattsson - 2015-11-15T13:05:05+00:00
3ed3dda2762c672722fdd9e33d739013d467406fjohan.mattsson.m@gmail.com

Create masters in glyph collections

Changed files (2)

Diff

diff --git a/libbirdfont/Glyph.vala b/libbirdfont/Glyph.valaindex ca3f81b..dbfa51c 100644--- a/libbirdfont/Glyph.vala+++ b/libbirdfont/Glyph.vala@@ -64,7 +64,8 @@ public class Glyph : FontDisplay {  	public WidgetAllocation allocation = new WidgetAllocation (); -	public unichar unichar_code = 0; // FIXME: name and unichar should be moved to to glyph collection+	// FIXME: name and unichar should be moved to to glyph collection+	public unichar unichar_code = 0;  	public string name;  	public double left_limit {diff --git a/libbirdfont/GlyphCollection.vala b/libbirdfont/GlyphCollection.valaindex 9a439df..dc73634 100644--- a/libbirdfont/GlyphCollection.vala+++ b/libbirdfont/GlyphCollection.vala@@ -1,5 +1,5 @@ /*-	Copyright (C) 2012, 2014 2015 Johan Mattsson+	Copyright (C) 2012 2014 2015 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 @@ -20,18 +20,22 @@ namespace BirdFont { public class GlyphCollection : GLib.Object { 	unichar unicode_character; 	string name;-	bool unassigned = false;-	public Gee.ArrayList<Glyph> glyphs = new Gee.ArrayList<Glyph> ();-	public int selected;+	bool unassigned;+	Gee.ArrayList<GlyphMaster> glyph_masters;  	public GlyphCollection (unichar unicode_character, string name) { 		this.unicode_character = unicode_character; 		this.name = name;+		glyph_masters = new Gee.ArrayList<GlyphMaster> ();+		unassigned = false 	}  	public GlyphCollection.with_glyph (unichar unicode_character, string name) { 		Glyph g; 		+		glyph_masters = new Gee.ArrayList<GlyphMaster> ();+		unassigned = false+		 		this.unicode_character = unicode_character; 		this.name = name; 		

Contact

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