Code

use 2geom bezier fitting (is copy of inkscape's)