The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Fix kerning handle selection

These changes was commited to the Birdfont repository Thu, 09 Oct 2014 13:33:10 +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>
Thu, 09 Oct 2014 13:33:10 +0000 (15:33 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Thu, 09 Oct 2014 13:33:10 +0000 (15:33 +0200)
commit 163bc4184167962a5658bcfc52be7c5bc8d77b0f
tree bf380e807593c44a52bfaff68392125f572fab29
parent 01fa8a83f881ad42fabdf36c78521c63892aef42
Fix kerning handle selection

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) + Math.pow (y - ey, 2); + d = Math.pow (fs * (x + kern) - ex, 2) + fs * Math.pow (y - ey, 2); if (d < min) { min = d;