View mode: basic / threaded / horizontal-split · Log in · Help
September 29, 2005
Cairo Graphics
I just thought I would ask, so as not to duplicate the efforts of another
developer...

Is anyone working on or know anything about an existing language binding for the
Cairo Graphics library? (www.cairographics.com)

If not, is anyone experienced at writing language bindings that might want to
help. JJR got a FreeType binding working, and I am so eternally greatful to him
for that... So, perhaps there is another out there who could help too?

Anyhoo, Terra is coming allong nicely, and its good to be back in the D comunity
now that things settled down in my life..

Let me know if there is any such effort, or anyone willing to help out.. Reply
here or email me -> (trevorparscal@hotmail.com)

Thanks,
Trevor Parscal
September 29, 2005
Re: Cairo Graphics
i dunno but you might want to check the Harmonia project, I think it had 
support for some 2d lib but i forget the name of it.


Trevor Parscal wrote:
> I just thought I would ask, so as not to duplicate the efforts of another
> developer...
> 
> Is anyone working on or know anything about an existing language binding for the
> Cairo Graphics library? (www.cairographics.com)
> 
> If not, is anyone experienced at writing language bindings that might want to
> help. JJR got a FreeType binding working, and I am so eternally greatful to him
> for that... So, perhaps there is another out there who could help too?
> 
> Anyhoo, Terra is coming allong nicely, and its good to be back in the D comunity
> now that things settled down in my life..
> 
> Let me know if there is any such effort, or anyone willing to help out.. Reply
> here or email me -> (trevorparscal@hotmail.com)
> 
> Thanks,
> Trevor Parscal
September 30, 2005
Re: Cairo Graphics
JT wrote:
> i dunno but you might want to check the Harmonia project, I think it had 
> support for some 2d lib but i forget the name of it.
> 
> 

I don't think Harmonia supports Cairo.  It's currently win32 only as far 
as I know.

-JJR
September 30, 2005
Re: Cairo Graphics
Trevor Parscal wrote:
> I just thought I would ask, so as not to duplicate the efforts of another
> developer...
> 
> Is anyone working on or know anything about an existing language binding for the
> Cairo Graphics library? (www.cairographics.com)
> 
> If not, is anyone experienced at writing language bindings that might want to
> help. JJR got a FreeType binding working, and I am so eternally greatful to him
> for that... So, perhaps there is another out there who could help too?
> 
> Anyhoo, Terra is coming allong nicely, and its good to be back in the D comunity
> now that things settled down in my life..
> 
> Let me know if there is any such effort, or anyone willing to help out.. Reply
> here or email me -> (trevorparscal@hotmail.com)
> 
> Thanks,
> Trevor Parscal

Hey Trevor,

Cairo shouldn't be too hard to do.  It doesn't have a huge number of 
functions like FreeType.  I actually had been examining Cairo for other 
reasons more recently.

What I do know about it is that in its current state, it's still quite 
immature in regards to performance.  If you use the glitz backend it's 
supposed to make prodigious use of opengl acceleration on X11/Unix type 
systems; but that backend is incomplete and considered experimental code 
at this point, so much so that they don't include it as part of the 
stable build (and, as far as I know, glitz is an X11 only library). 
XRender is the default backend on X11/Unix, I believe, and is currently 
not adequately accelerated by the majority of graphics card drivers on 
X11/Unix.

On Win32, I'm not sure what the performance is like.  Perhaps it's 
better.  At any rate, Cairo looks like a very powerful and promising 2D 
rendering library.  It just needs more support at the driver level.  It 
probably would be useful having a D binding for it, but I don't know how 
popular its use would be at this stage.  It's definitely a library to 
follow for the future, though.

-JJR
September 30, 2005
Re: Cairo Graphics
Trevor Parscal wrote:
>  JJR got a FreeType binding working, and I am so eternally greatful to him
> for that... 
> 

Are these bindings public? Where can I find them? I checked 
bindings/derelict at dsource but I haven't found freetype bindings...
September 30, 2005
Re: Cairo Graphics
bobef wrote:
> Trevor Parscal wrote:
>>  JJR got a FreeType binding working, and I am so eternally greatful to 
>> him
>> for that...
> 
> Are these bindings public? Where can I find them? I checked 
> bindings/derelict at dsource but I haven't found freetype bindings...

I haven't posted them yet.  I just sent them to Trevor privately because 
he needed them so urgently :-).

I'll try to get them submitted to bindings shortly.  I'm not sure if 
Mike Parker is interested in having them placed in Derelict at this point.

The dynamic FreeType bindings are working on Linux and Win32.  There are 
still some things to clean up, but they seem to be working fine.  On 
win32, you use the included freetype.dll for best results.

-JJR
September 30, 2005
Re: Cairo Graphics
bobef wrote:
> Trevor Parscal wrote:
>>  JJR got a FreeType binding working, and I am so eternally greatful to 
>> him
>> for that...
> 
> Are these bindings public? Where can I find them? I checked 
> bindings/derelict at dsource but I haven't found freetype bindings...

They are now submitted to bindings at

http://svn.dsource.org/projects/bindings/trunk/freetype

All the best,

- JJR
Top | Discussion index | About this forum | D home