The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Fix critical spacing bug

Changes made to libbirdfont/OpenFontFormat/GlyfTable.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/OpenFontFormat/GlyfTable.vala +++ libbirdfont/OpenFontFormat/GlyfTable.vala @@ -43,6 +43,7 @@ // sorted array of glyphs public Gee.ArrayList<GlyphCollection> glyphs; + public Gee.ArrayList<GlyfData> glyf_data; public uint number_of_unassigned_glyphs = 0; uint16 max_points = 0; @@ -53,6 +54,7 @@ loca_table = l; location_offsets = new Gee.ArrayList<uint32> (); glyphs = new Gee.ArrayList<GlyphCollection> (); + glyf_data = new Gee.ArrayList<GlyfData> (); } public int get_gid (string name) { @@ -209,6 +211,8 @@ g.remove_empty_paths (); glyf_data = g.get_ttf_data (); + + this.glyf_data.add (glyf_data); if (g.path_list.size == 0 || glyf_data.paths.size == 0 || glyf_data.get_ncontours () == 0) { // location_offsets will be equal to location_offset + 1 for