The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Move the SVG parser and the SVG rendering code to libsvgbird

Changes made to libbirdfont/ClipTool.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/ClipTool.vala +++ libbirdfont/ClipTool.vala @@ -11,6 +11,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. */ + + using SvgBird; namespace BirdFont { @@ -95,7 +97,7 @@ dx = g.motion_x - x - w / 2.0; dy = g.motion_y - y + h / 2.0; - foreach (Object path in g.active_paths) { + foreach (SvgBird.Object path in g.active_paths) { path.move (dx, dy); } } else if (fd is KerningDisplay) { @@ -405,9 +407,9 @@ string cap = p.replace ("cap: ", ""); if (cap == "round") { - path.line_cap = LineCap.ROUND; + path.line_cap = SvgBird.LineCap.ROUND; } else if (cap == "square") { - path.line_cap = LineCap.SQUARE; + path.line_cap = SvgBird.LineCap.SQUARE; } } }