The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Use SVG transform, parse opacity and gradients

Changes made to libbirdfont/Svg/SvgPath.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/Svg/SvgPath.vala +++ libbirdfont/Svg/SvgPath.vala @@ -32,15 +32,19 @@ public override void draw (Context cr, Color? c = null) { cr.save (); + apply_transform (cr); + cr.new_path (); foreach (Points p in points) { - cr.new_path (); - cr.move_to (p.x, p.y); + cr.move_to (p.x, p.y); draw_points (cr, p); + + if (p.closed) { + cr.close_path (); + } } - + fill_and_stroke (cr); - cr.restore (); }