The Birdfont Source Code


All Repositories / birdfont.git / commit – 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
author Johan Mattsson <johan.mattsson.m@gmail.com>
Sat, 25 Apr 2015 08:10:22 +0000 (10:10 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Sat, 25 Apr 2015 08:10:22 +0000 (10:10 +0200)
commit 835c1fb63ae70a21db63b5f87189fb1e24b20897
tree 8e1551d086ef293214fbf8e4506ca849c0bd0f14
parent aadce9767ac74f7b0e73e2578ecab2df6c90ae34
Update lsb and rsb in guide

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; }