The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

SVG boundaries for ellipses

Changes made to libsvgbird/Object.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libsvgbird/Object.vala +++ libsvgbird/Object.vala @@ -72,29 +72,33 @@ public double ymin { get { - return top - boundaries_height; + return -top - boundaries_height; } set { - top = value + boundaries_height; + top = boundaries_height - value; } } public double ymax { get { - return top; + return -top; } set { - top = value; + top = -value; } } + // FIXME: DELETE public virtual double rotation { get; set; } public virtual double stroke { get; set; } public virtual LineCap line_cap { get; set; default = LineCap.BUTT; } public virtual bool fill { get; set; } - + + public const double CANVAS_MAX = 100000; + public const double CANVAS_MIN = -100000; + public Object () { } @@ -226,8 +230,10 @@ object_matrix.multiply (object_matrix, view_matrix); cr.set_matrix (object_matrix); } - + + public virtual void update_boundaries () { + } } }