1. A method for rasterizing a vector graphic, the method comprising: generating an intermediate data structure from the vector graphic; rendering the intermediate data structure to a render surface; and encoding the render surface to a raster image.