Drawing code ported from awt to svglite (our own custom Svg library).

See title

*************
Pull request automatically opened by ./tmt pull-request
./tmt make check passed