The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Clear glyph cache when spacing is updated

These changes was commited to the Birdfont repository Tue, 22 Sep 2015 21:07:19 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Tue, 22 Sep 2015 21:07:19 +0000]

Updated Files

libbirdfont/Glyph.vala
libbirdfont/Renderer/Text.vala
--- a/libbirdfont/Glyph.vala +++ b/libbirdfont/Glyph.vala @@ -73,11 +73,23 @@ } set { + ttf_data = null; _left_limit = value; } } - public double right_limit; + public double right_limit { + get { + return _right_limit; + } + + set { + ttf_data = null; + _right_limit = value; + } + } + + private double _right_limit = 0; private double _left_limit = 0; // x-height, lsb, etc. @@ -527,7 +539,6 @@ left_line.position_updated.connect ((pos) => { left_limit = pos; update_other_spacing_classes (); - left_line.set_metrics (get_left_side_bearing ()); }); left_line.set_metrics (get_left_side_bearing ());
--- a/libbirdfont/Renderer/Text.vala +++ b/libbirdfont/Renderer/Text.vala @@ -207,7 +207,6 @@ public double get_sidebearing_extent () { double x ; - double ratio; if (likely (sidebearing_extent > 0)) { return sidebearing_extent;