Bug 50363 - Add an utility to convert SVG paths into cairo_path_t
Add an utility to convert SVG paths into cairo_path_t
Status: NEW
Product: cairo
Classification: Unclassified
Component: general
1.12.2
Other All
: medium enhancement
Assigned To: Carl Worth
cairo-bugs mailing list
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-25 15:06 UTC by Juan Pablo Ugarte
Modified: 2012-05-27 20:10 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Utility to convert SVG to cairo_path_t (19.29 KB, text/x-csrc)
2012-05-25 15:06 UTC, Juan Pablo Ugarte
Details
Utility to convert SVG to cairo_path_t (19.31 KB, text/x-csrc)
2012-05-27 20:05 UTC, Juan Pablo Ugarte
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juan Pablo Ugarte 2012-05-25 15:06:31 UTC
Created attachment 62111 [details]
Utility to convert SVG to cairo_path_t

I think it would be useful for some people (it is for me) an utility to convert a SVG path string into a cairo_path_t

Any comments?
Comment 1 Behdad Esfahbod 2012-05-25 16:01:46 UTC
Also check:

http://git.gnome.org/browse/pango/tree/examples/cairoshape.c
Comment 2 Juan Pablo Ugarte 2012-05-27 20:05:09 UTC
Created attachment 62150 [details]
Utility to convert SVG to cairo_path_t

Fixed source output
Comment 3 Juan Pablo Ugarte 2012-05-27 20:10:49 UTC
(In reply to comment #1)
> Also check:
> 
> http://git.gnome.org/browse/pango/tree/examples/cairoshape.c

I did, pretty nice, but the idea is to be able to use a svg edited with any graphics application like Inkscape and integrate it directly in the build system.

Take a look at my blog post
http://blogs.gnome.org/xjuan/2012/05/28/svg-cairo_path_t-fun/