-
generate svg
in seeking to embellish some text and lines output I have,
I though about using SVG.
On a quick glance, there are a number of libraries out that seemed to have proved their stability over the years, cairo, pango, librsvg, but they are part of farily big projects and of course you surrender a little to portability if you decide to depend on them.
Of course, it's possible to just generate the XML-SVG text within the C prog itself, but on that count you doing a little wheel inventing.
Has anybody given this a think? Any comments? Thanks in adv!
-
Personally, I like cairo because it's mature, cross-platform and has a variety of different output targets (PDF, SVG, Postscript, etc). That and the API is very simple: Cairo Tutorial. It has very nice results.
P.S. Pango is for text, cairo can do both text and graphics.
-
Hi Epy,
Yes, I was having a closer look at it ... I use linux and have to share code with people using Mac OS X, don't know if I ask them to make sure they have cairo installed befoe they run my prog.
Thanks for answer.
-
Download
Look down near the bottom under 'Mac OS X', seems like it might be a matter of a simple sudo statement.