The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Use SVG transform, parse opacity and gradients

Changes made to libbirdfont/Svg/SvgParser.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/SvgParser.vala +++ libbirdfont/Svg/SvgParser.vala @@ -64,8 +64,8 @@ public static void import_color_svg (Glyph glyph, string path) { SvgFile svg_file = new SvgFile (); - Layer layer = svg_file.parse (path); - glyph.add_layer (layer); + SvgDrawing drawing = svg_file.parse (path); + glyph.add_layer (drawing.root_layer); } public static void import_folder (SvgType type) {