The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Fix contextual ligature substitution

These changes was commited to the Birdfont repository Wed, 19 Aug 2015 16:02:21 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Wed, 19 Aug 2015 16:02:21 +0000]

Updated Files

libbirdfont/OpenFontFormat/ContextualLigature.vala
--- a/libbirdfont/OpenFontFormat/ContextualLigature.vala +++ b/libbirdfont/OpenFontFormat/ContextualLigature.vala @@ -89,7 +89,7 @@ // gid array foreach (string glyph_name in backtrack) { fd.add_ushort (1); // format - fd.add_ushort ((uint16) backtrack.size); // coverage array length + fd.add_ushort (1); // coverage array length fd.add_ushort ((uint16) glyf_table.get_gid (glyph_name)); } @@ -101,19 +101,19 @@ // gid array foreach (string glyph_name in input) { fd.add_ushort (1); // format - fd.add_ushort ((uint16) input.size); // coverage array length + fd.add_ushort (1); // coverage array length fd.add_ushort ((uint16) glyf_table.get_gid (glyph_name)); } // lookahead coverage table1 if (fd.length_with_padding () != lookahead_offset) { warning (@"Wrong lookahead offset: $lookahead_offset != $(fd.length_with_padding ())"); - } + } // gid array foreach (string glyph_name in lookahead) { fd.add_ushort (1); // format - fd.add_ushort ((uint16) lookahead.size); // coverage array length + fd.add_ushort (1); // coverage array length fd.add_ushort ((uint16) glyf_table.get_gid (glyph_name)); }