Clone in a terminal:
Commit 87fc890
Johan Mattsson - 2015-08-19T16:02:21+00:00
87fc890ac6cbbe2ec60843ee32e4e0404a7dc9fajohan.mattsson.m@gmail.com

Fix contextual ligature substitution

Changed files (1)

Diff

diff --git a/libbirdfont/OpenFontFormat/ContextualLigature.vala b/libbirdfont/OpenFontFormat/ContextualLigature.valaindex ed7a791..d45094c 100644--- a/libbirdfont/OpenFontFormat/ContextualLigature.vala+++ b/libbirdfont/OpenFontFormat/ContextualLigature.vala@@ -89,7 +89,7 @@ public class ContextualLigature : GLib.Object { 		// 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 @@ public class ContextualLigature : GLib.Object { 		// 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)); 		} 		

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112