.
1 /*
2 Copyright (C) 2014 Johan Mattsson
3
4 This library is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as
6 published by the Free Software Foundation; either version 3 of the
7 License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful, but
10 WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13 */
14
15 namespace BirdFont {
16
17 /** Bezier point container for the SVG parser. */
18 public class BezierPoints {
19 public unichar type = '\0';
20 public unichar svg_type = '\0';
21 public double x0 = 0;
22 public double y0 = 0;
23 public double x1 = 0;
24 public double y1 = 0;
25 public double x2 = 0;
26 public double y2 = 0;
27
28 public string to_string () {
29 return @"$((!)type.to_string ()) $x0,$y0 $x1,$y1 $x2,$y2 SVG:$((!)svg_type.to_string ())";
30 }
31 }
32
33 }
34