The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Copy circles

These changes was commited to the Birdfont repository Wed, 08 Jun 2016 20:38:26 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Wed, 08 Jun 2016 20:38:26 +0000]

Updated Files

libsvgbird/Circle.vala
libsvgbird/Gradient.vala
libsvgbird/SvgPath.vala
--- a/libsvgbird/Circle.vala +++ b/libsvgbird/Circle.vala @@ -54,7 +54,7 @@ Object.copy_attributes (this, c); c.cx = cx; - c.cx = cy; + c.cy = cy; c.r = r; return c;
--- a/libsvgbird/Gradient.vala +++ b/libsvgbird/Gradient.vala @@ -48,6 +48,12 @@ foreach (Stop s in stops) { g.stops.add (s.copy ()); } + + g.id = id; + g.href = href; + transforms = transforms.copy (); + + print (@"$(this)\n"); return g; } @@ -60,7 +66,7 @@ public string to_string () { StringBuilder description = new StringBuilder (); - description.append ("Gradient: "); + description.append (@"Gradient $(id): "); description.append (@"x1=$x1, y1=$y1, x2=$x2, y2=$y2"); foreach (Stop stop in stops) {
--- a/libsvgbird/SvgPath.vala +++ b/libsvgbird/SvgPath.vala @@ -49,6 +49,7 @@ PointValue* points = path.point_data.data; int size = path.point_data.size; + // points are padded up to 8 units return_if_fail (size % 8 == 0); for (int i = 0; i < size; i += 8) {