The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Update lsb and rsb in guide

These changes was commited to the Birdfont repository Sat, 25 Apr 2015 08:10:22 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Sat, 25 Apr 2015 08:10:22 +0000]

Updated Files

libbirdfont/Line.vala
--- a/libbirdfont/Line.vala +++ b/libbirdfont/Line.vala @@ -288,6 +288,18 @@ } public void set_active (bool active) { + Glyph g; + + if (active) { + g = MainWindow.get_current_glyph (); + + if (lsb) { + set_metrics (g.get_left_side_bearing ()); + } else if (rsb) { + set_metrics (g.get_right_side_bearing ()); + } + } + this.active = active; }