The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – 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
[Sun, 15 Nov 2015 13:05:05 +0000]

Updated Files

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;