The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Fix Cmap tables

These changes was commited to the Birdfont repository Sat, 17 Oct 2015 09:40:46 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Sat, 17 Oct 2015 09:40:46 +0000]

Updated Files

libbirdfont/OpenFontFormat/CmapSubtableFormat12.vala
libbirdfont/OpenFontFormat/CmapSubtableFormat4.vala
--- a/libbirdfont/OpenFontFormat/CmapSubtableFormat12.vala +++ b/libbirdfont/OpenFontFormat/CmapSubtableFormat12.vala @@ -27,12 +27,7 @@ uint32 first_assigned; uint32 indice; - first_assigned = 0; - foreach (GlyphCollection g in glyf_table.glyphs) { - if (!g.is_unassigned () && g.get_unicode_character () == '\0') { - first_assigned++; - } - } + first_assigned = 1; foreach (GlyphCollection g in glyf_table.glyphs) { if (!g.is_unassigned () && g.get_unicode_character () < 0xFFFFFFFF) {
--- a/libbirdfont/OpenFontFormat/CmapSubtableFormat4.vala +++ b/libbirdfont/OpenFontFormat/CmapSubtableFormat4.vala @@ -190,12 +190,7 @@ uint32 indice; uint32 first_assigned; - first_assigned = 0; - foreach (GlyphCollection g in glyf_table.glyphs) { - if (!g.is_unassigned () && g.get_unicode_character () == '\0') { - first_assigned++; - } - } + first_assigned = 1; foreach (GlyphCollection g in glyf_table.glyphs) { if (!g.is_unassigned () && g.get_unicode_character () < 0xFFFF) {