The Birdfont Source Code


All Repositories / birdfont.git / commit – 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
author Johan Mattsson <johan.mattsson.m@gmail.com>
Tue, 22 Sep 2015 21:07:19 +0000 (23:07 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Tue, 22 Sep 2015 21:07:19 +0000 (23:07 +0200)
commit 6e667d0c1733dd8ebbaca8de9505663d97299b6c
tree 96187a9bb77b36645e5fa47605d71703c76a66b8
parent 23350491ad1a92f5f5b0339250d7bdb2ccd6b0fe
Clear glyph cache when spacing is updated

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;