Clone in a terminal:
Commit f0d8ed3
Johan Mattsson - 2015-10-12T15:05:32+00:00
f0d8ed31ad94cfa9a38a69b76b69366b56152939johan.mattsson.m@gmail.com

Solve the backtrack issue

Changed files (1)

Diff

diff --git a/libbirdfont/OpenFontFormat/ContextualLigature.vala b/libbirdfont/OpenFontFormat/ContextualLigature.valaindex d8b57db..186a59d 100644--- a/libbirdfont/OpenFontFormat/ContextualLigature.vala+++ b/libbirdfont/OpenFontFormat/ContextualLigature.vala@@ -46,14 +46,7 @@ public class ContextualLigature : GLib.Object { 	public FontData get_font_data (GlyfTable glyf_table, uint16 ligature_lookup_index)  		throws GLib.Error { 		FontData fd = new FontData ();-		Font font = BirdFont.get_current_font (); // FIXME: thread safety?-		-		// FIXME: it looks like get_names is the right function-		// but harfbuzz assumes that glyphs appear in the other -		// order for latin scripts, get_names_in_reverse_order-		// creates an array of glyphs in reverse order.-		//-		// I have not found out why yet.+		Font font = BirdFont.get_current_font (); 		 		Gee.ArrayList<string> backtrack = font.get_names_in_reverse_order (backtrack); 		Gee.ArrayList<string> input = font.get_names (input);

Contact

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