The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Fix kerning handle

These changes was commited to the Birdfont repository Fri, 10 Oct 2014 13:05:20 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
author Johan Mattsson <johan.mattsson.m@gmail.com>
Fri, 10 Oct 2014 13:05:20 +0000 (15:05 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Fri, 10 Oct 2014 13:05:20 +0000 (15:05 +0200)
commit b2af50355589e1a299876c7dec4aaf12b157e12c
tree 07dc480369272e605fdf0d365933757b10879d99
parent a52f2203870ab4c877aa7e547810d50bf0de0873
Fix kerning handle

libbirdfont/KerningDisplay.vala
--- a/libbirdfont/KerningDisplay.vala +++ b/libbirdfont/KerningDisplay.vala @@ -774,7 +774,7 @@ kern = get_kerning_for_pair (((!)prev).get_name (), ((!)g).get_name (), gr_left, gr_right); } - d = Math.pow (fs * (x + kern) - ex, 2) + fs * Math.pow (y - ey, 2); + d = Math.pow (fs * (x + kern) - ex, 2) + Math.pow (fs * (y - ey), 2); if (d < min) { min = d;