diff --git a/src/Chart.vala b/src/Chart.vala index 1b29a29..b77931a 100644 --- a/src/Chart.vala +++ b/src/Chart.vala @@ -303,11 +303,8 @@ namespace CairoChart { if (evarea.height < 0) evarea.height = 0; } protected virtual void rot_axes_titles () { - foreach (var s in series) { - //s.axis_y.title.font = new Font();//s.axis_y.title.font.copy(); + foreach (var s in series) s.axis_y.title.font.orient = Gtk.Orientation.VERTICAL; - s.axis_y.title.font.size = 50; - } } protected virtual void eval_plarea () { diff --git a/src/Font.vala b/src/Font.vala index 7242885..79c74ab 100644 --- a/src/Font.vala +++ b/src/Font.vala @@ -9,27 +9,27 @@ namespace CairoChart { /** * A font family name, encoded in UTF-8. */ - public string family; + public string family { get; set; } /** * The new font size, in user space units. */ - public double size; + public double size { get; set; } /** * The slant for the font. */ - public Cairo.FontSlant slant; + public Cairo.FontSlant slant { get; set; } /** * The weight for the font. */ - public Cairo.FontWeight weight; + public Cairo.FontWeight weight { get; set; } /** * Font/Text orientation. */ - public Gtk.Orientation orient; + public Gtk.Orientation orient { get; set; } /** * Constructs a new ``Font``. diff --git a/src/Text.vala b/src/Text.vala index c1d832a..9f346a7 100644 --- a/src/Text.vala +++ b/src/Text.vala @@ -19,7 +19,7 @@ namespace CairoChart { } set { _text = value; - //_ext = null;// TODO: check necessity + _ext = null; } } @@ -32,11 +32,10 @@ namespace CairoChart { } set { _font = value; - // TODO: check necessity - //_font.notify.connect((s, p) => { - // _ext = null; - //}); - //_ext = null;// TODO: check necessity + _font.notify.connect((s, p) => { + _ext = null; + }); + _ext = null; } } @@ -185,10 +184,6 @@ namespace CairoChart { this.text = text; this.font = font; this.color = color; - // TODO: check necessity - //_font.notify.connect((s, p) => { - // _ext = null; - //}); } /** @@ -197,8 +192,8 @@ namespace CairoChart { public virtual Text copy () { var text = new Text (chart); text.chart = this.chart; - text._text = this._text; - text._font = this._font; + text.text = this.text; + text.font = this.font; text._ext = this._ext; text.color = this.color; return text;