The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Fix ligature preview

These changes was commited to the Birdfont repository Fri, 11 Aug 2017 22:37:16 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Fri, 11 Aug 2017 22:37:16 +0000]

Updated Files

libbirdfont/GlyphSequence.vala
--- a/libbirdfont/GlyphSequence.vala +++ b/libbirdfont/GlyphSequence.vala @@ -160,8 +160,12 @@ glyph = substitute (i + backtrack.length (), input.length (), replacement); advance = backtrack.length () + replacement.length (); - i += advance + 1; - + i += advance; + + if (replacement.length () == 0) { + i++; + } + if (advance <= 0) { warning ("No advancement."); return;