Mirror of canvg from https://code.google.com/p/canvg/