[cairo] creating graphics for use with cairo
Dan McMahill
dan at mcmahill.net
Fri Jan 16 19:49:58 PST 2009
Dan McMahill wrote:
> Peter Clifton wrote:
>> On Thu, 2009-01-15 at 19:25 -0500, Dan McMahill wrote:
>>> Hello,
>>> I have played around a little with trying to use pstoedit to convert my
>>> .eps files to .svg but haven't managed to get it to work right.
>>>
>>> At this point I'm a little unsure of the direction I should take. Any
>>> thoughts?
>> Hi Dan!
>>
>> (Dan is another gEDA developer, on the PCB design side of things
>> usually).
>>
>> I wonder if it would be worth teaching pstoedit a new backend which can
>> "render" to cairo calls in C. (As in.. produce generated source-code
>> fragments calling the cairo routines).
>>
>> This would let you avoid the svg conversion and librsvg dependency.
>
> In general do people have good luck with pstoedit? I've been playing
> around with it and the plot-svg as well as the sk (skencil) output.
> Neither seems to do much for producing a good result. The .sk output
> (viewed directly with skencil) seems to have problems with filled
> polygons. But maybe that is a skencil limitation. The plot-svg output
> is also not dealing well with filled polygons.
Since I knew nothing about pstoedit, haven't written anything with cairo
until this week and don't use c++ I figured I might as well give it a
shot making a cairo driver for pstoedit. Turns out it was pretty easy
and I'm able to use pstoedit to produce C code (that actually compiles
and works no less) containing cairo calls to render the page.
I have a few issues left to deal with like I don't have the text code
done but I'm getting real figures to make it through.
-Dan
More information about the cairo
mailing list