ungerik / go-cairo

Go binding for the cairo graphics library
Other
142 stars 32 forks source link

Adding SVGSurfaceSetDocumentUnit function #27

Closed JakobGlock closed 1 year ago

JakobGlock commented 1 year ago

Hi, I discovered your repository recently and have been really enjoying using it to build a project for generating some art. But I realised it lacked the ability to set the unit for SVG's to PX, it defaults to PT unless the cairo_svg_surface_set_document_unit function is called. I have added a function to implement this, which can hopefully be merged, if I have done it correctly? Thanks, Jakob Glock

ungerik commented 1 year ago

Thanks!