gtk+ on OSX - without X11?

2007-02-03 Thread Adam Bloom
Hey all, I just spent three hours compiling gtk+ and all of it's dependencies (whoo!). I had gotten the impression that support for Mac OSX without using X11 was built into gtk+. Was I wrong? I can compile and run the example program from the 2.0 tutorial fine in X11, but outside of it I get: Gtk

Re: Writing a PangoLayoutLine on a line in cairo

2007-02-03 Thread Behdad Esfahbod
On Sat, 2007-02-03 at 23:30 +0200, Dov Grobgeld wrote: > > cairotwisted.c is really neat! Now we can write on warped surfaces. > :-) There seems to be a bug though in the rendering of the O of the > central WOW. It looks almost like the two inner nodes of all the > bezier curves on the outside of

Re: Writing a PangoLayoutLine on a line in cairo

2007-02-03 Thread Dov Grobgeld
Thanks for the help Owen and Behdad. Indeed pango_cairo_show_layout_line() was what I was looking for. The documentation even describes the functionality! Thanks. cairotwisted.c is really neat! Now we can write on warped surfaces. :-) There seems to be a bug though in the rendering of the O of the

Re: Getting greatest decimal accuracy out of G_PI

2007-02-03 Thread Yeti
On Sat, Feb 03, 2007 at 12:34:24PM -0500, zentara wrote: > > I'll post this in case anyone in the future searches the archives > for an answer. For the case anyone finds this, a correction... You can't fool C. The literal without an `l' suffix is a double literal. The compiler creates a floati

Re: Writing a PangoLayoutLine on a line in cairo

2007-02-03 Thread Behdad Esfahbod
Also check pango/examples/cairotwisted.c for some interesting stuff you can do with pangocairo. behdad On Sat, 2007-02-03 at 21:48 +0200, Dov Grobgeld wrote: > I'm trying to understand how to get the baseline information from a > single line PangoLayout or equivalently a PangoLayoutLine. > > Mo

Re: [cairo] Writing a PangoLayoutLine on a line in cairo

2007-02-03 Thread Behdad Esfahbod
On Sat, 2007-02-03 at 14:59 -0500, Owen Taylor wrote: > On Sat, 2007-02-03 at 21:48 +0200, Dov Grobgeld wrote: > > I > > In pango_cairo_show_layout() on the other hand, the layout logical > > upper left corner is aligned at the current cairo point when drawing, > > and I could not find any PangoLay

Re: [cairo] Writing a PangoLayoutLine on a line in cairo

2007-02-03 Thread Owen Taylor
On Sat, 2007-02-03 at 21:48 +0200, Dov Grobgeld wrote: > I > In pango_cairo_show_layout() on the other hand, the layout logical > upper left corner is aligned at the current cairo point when drawing, > and I could not find any PangoLayout call that gets the distance from > the top of the logical re

Writing a PangoLayoutLine on a line in cairo

2007-02-03 Thread Dov Grobgeld
I'm trying to understand how to get the baseline information from a single line PangoLayout or equivalently a PangoLayoutLine. More concretely I would like to translate the following postscript program into Pango/Cairo: %! 1.0 0 0 setrgbcolor 100 100 moveto 150 0 rlineto stroke 100 100

[no subject]

2007-02-03 Thread nostradamo
I have installed gtk2 on windows. but if i want to compile with g++ it does niot find the header files. so my be the paths are not correct. I tried it to modify several times but without results. how does i do that the g++ can find it correct? best greetings Ralf___

Re: Getting greatest decimal accuracy out of G_PI

2007-02-03 Thread zentara
On Sat, 3 Feb 2007 01:46:08 +0100 David Nečas (Yeti) <[EMAIL PROTECTED]> wrote: >On Fri, Feb 02, 2007 at 04:14:09PM -0800, Sergei Steshenko wrote: >> >> You can still use explicit cast, i.e. >> >> ((long double)G_PI) >> >> , can't you? > >If you can demonstrate a program that gets the value of

Re: Getting greatest decimal accuracy out of G_PI

2007-02-03 Thread Richard Boaz
taken, in context, from the following page: http:// developer.gnome.org/doc/API/2.0/glib/glib-resources.html There are several mailing lists dedicated to GTK+ and related libraries. Discussion of GLib generally takes place on these lists. You can subscribe or view the archives of these lists

Re: Getting greatest decimal accuracy out of G_PI

2007-02-03 Thread zentara
On Sat, 3 Feb 2007 13:31:57 +0200 Tor Lillqvist <[EMAIL PROTECTED]> wrote: > > Just feeling for the limits of what I can do given the contraints > > of the language. > >And how is that related to GTK+? Well Gtk+ is based on Glib. The Glib header defined the accuracy of G_PI to 50 decimal places.

Re: Getting greatest decimal accuracy out of G_PI

2007-02-03 Thread Tor Lillqvist
> Just feeling for the limits of what I can do given the contraints > of the language. And how is that related to GTK+? > I like to think about things like using the center of the earth as > an origin, and using a spherical coordinate system to locate > points(and/or areas volumes) on the su

Re: Getting greatest decimal accuracy out of G_PI

2007-02-03 Thread zentara
On Sat, 3 Feb 2007 03:48:39 +0200 Tor Lillqvist <[EMAIL PROTECTED]> wrote: >Before this discussion gets any further, maybe the original poster >could tell us what he intends to *do* with the highly accurate value >of pi he is after? I am certainly no expert on numerical computation, >but I know th

Re: Getting greatest decimal accuracy out of G_PI

2007-02-03 Thread Robert Pearce
Hi Sergei, On Fri, 2 Feb 2007 16:14:09 -0800 (PST) you wrote: > You can still use explicit cast, i.e. > > ((long double)G_PI) > > , can't you ? Even without the trail 'l' you have correctly suggested to > add. You can, but would it work? AIUI the C standard only requires that to result in a lo