The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – 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
[Thu, 09 Oct 2014 13:33:10 +0000]

Updated Files

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;