The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Create masters in glyph collections

These changes was commited to the Birdfont repository Sun, 15 Nov 2015 13:05:05 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
author Johan Mattsson <johan.mattsson.m@gmail.com>
Sun, 15 Nov 2015 13:05:05 +0000 (14:05 +0100)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Sun, 15 Nov 2015 13:05:05 +0000 (14:05 +0100)
commit 3ed3dda2762c672722fdd9e33d739013d467406f
tree 4940640cd0f8ddf311edc616b421f226c61a14e2
parent 7362b713ed3173fd18594f9fc536b0225d43da73
Create masters in glyph collections

libbirdfont/Glyph.vala
libbirdfont/GlyphCollection.vala
--- a/libbirdfont/Glyph.vala +++ b/libbirdfont/Glyph.vala @@ -64,7 +64,8 @@ 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 {
--- 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,17 +20,21 @@ 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;