The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Adjust rsb (right side bearing) for ligatures in kerning tab

These changes was commited to the Birdfont repository Sat, 04 Oct 2014 11:53:12 +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, 04 Oct 2014 11:53:12 +0000]

Updated Files

libbirdfont/KerningDisplay.vala
--- a/libbirdfont/KerningDisplay.vala +++ b/libbirdfont/KerningDisplay.vala @@ -523,19 +523,22 @@ void set_selected_handle (int handle) { Glyph? g; selected_handle = handle; + GlyphSequence sequence_with_ligatures; + + sequence_with_ligatures = row.get (0).process_ligatures (); if (selected_handle <= 0) { selected_handle = 1; } - if (selected_handle >= row.get (0).glyph.size) { - selected_handle = (int) row.get (0).glyph.size - 1; + if (selected_handle >= sequence_with_ligatures.glyph.size) { + selected_handle = (int) sequence_with_ligatures.glyph.size - 1; } set_active_handle_index (handle); - if (0 <= selected_handle - 1 < row.get (0).glyph.size) { - g = row.get (0).glyph.get (selected_handle - 1); + if (0 <= selected_handle - 1 < sequence_with_ligatures.glyph.size) { + g = sequence_with_ligatures.glyph.get (selected_handle - 1); if (g != null) { left_active_glyph = (!) g; }