The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Fix kerning handle

These changes was commited to the Birdfont repository Sun, 19 Apr 2015 18:03:37 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Sun, 19 Apr 2015 18:03:37 +0000]

Updated Files

libbirdfont/KerningDisplay.vala
--- a/libbirdfont/KerningDisplay.vala +++ b/libbirdfont/KerningDisplay.vala @@ -739,8 +739,6 @@ public void set_active_handle (double ex, double ey) { double item_size = 1.0 / KerningTools.font_size; - double y = 100 * item_size; - double x = 20; double w = 0; double d, kern; double min = double.MAX; @@ -750,7 +748,9 @@ double fs = KerningTools.font_size; Glyph glyph = new Glyph.no_lines (""); Font font = BirdFont.get_current_font (); - + double y = font.get_height () * item_size; + double x = 20; + GlyphRange? gr_left, gr_right; Glyph? prev = null;