Re: [lazarus] GTK Rotated text

2007-09-12 Thread Luis Rodrigues
When drawing to a TImage canvas DevCtx.DCWidget was nil so gtk_widget_get_screen(DevCtx.DCWidget) would fail. Just replaced it with another function. Now should work. On Wed, 2007-09-12 at 05:24 +0100, Luis Rodrigues wrote: Too much sleep made me send the wrong patch. Sorry. I don't know

Re: [lazarus] GTK Rotated text

2007-09-11 Thread Marc Weustink
Luis Rodrigues wrote: Hi, Over the last weekend I've implemented text rotate in GTK2. I've implemented it in Gtk2WidgetSet.ExtTextOut. Since there is no way to define that the font is rotated, TGtk2WidgetSet.CreateFontIndirectEx .. lfEscapement can only be used to place the angle somewhere to

RE: [lazarus] GTK Rotated text

2007-09-11 Thread Hess, Philip J
To: lazarus@miraclec.com Subject: Re: [lazarus] GTK Rotated text Hi, Over the last weekend I've implemented text rotate in GTK2. I've implemented it in Gtk2WidgetSet.ExtTextOut. Since there is no way to define that the font is rotated, TGtk2WidgetSet.CreateFontIndirectEx .. lfEscapement can only

Re: [lazarus] GTK Rotated text

2007-09-11 Thread Luis Rodrigues
On Tue, 2007-09-11 at 11:38 +0200, Marc Weustink wrote: Luis Rodrigues wrote: Hi, Over the last weekend I've implemented text rotate in GTK2. I've implemented it in Gtk2WidgetSet.ExtTextOut. Since there is no way to define that the font is rotated, TGtk2WidgetSet.CreateFontIndirectEx

Re: [lazarus] GTK Rotated text

2007-09-11 Thread Felipe Monteiro de Carvalho
On 9/11/07, Luis Rodrigues [EMAIL PROTECTED] wrote: According to gtk.org bindings page only gtk.2.4 is supported in pascal. Well, look again =) I sent an e-mail months ago telling them to update their page, and they finally answered it today, saying it was updated, and it's indeed updated. I

Re: [lazarus] GTK Rotated text

2007-09-11 Thread Luis Rodrigues
On Tue, 2007-09-11 at 20:36 +0200, Felipe Monteiro de Carvalho wrote: I know that fpc gtk bindings cover at least up to 2.8 Where are they? I could find them defined in FPC/packages/extra/gtk2 or FPC/packages/extra/gtk1 so I thought they weren't and defined the functions I needed. Luís

Re: [lazarus] GTK Rotated text

2007-09-11 Thread Luis Rodrigues
Here is the patch to enable font rotation on gtk2. The angle used is the one defined in createfontindirect. Someone still needs to implement the necessary functions in the gtk bindings. Luis On Mon, 2007-09-10 at 18:39 +0100, Luis Rodrigues wrote: Hi, Over the last weekend I've implemented

Re: [lazarus] GTK Rotated text

2007-09-11 Thread Luis Rodrigues
Too much sleep made me send the wrong patch. Sorry. I don't know how the change in drawing function affects the rest of the lcl code, but it should work with no probs. Luis On Wed, 2007-09-12 at 04:47 +0100, Luis Rodrigues wrote: Here is the patch to enable font rotation on gtk2. The angle

Re: [lazarus] GTK Rotated text

2007-09-05 Thread Mattias Gaertner
On Tue, 04 Sep 2007 21:31:07 +0100 Luis Rodrigues [EMAIL PROTECTED] wrote: Hello, I was going to implement rotating text on GTK2 but just noticed that pango_font_description_set_gravity, PangoGravity, etc are not defined on FreePascal Pango bindings. I tried to find on GTK website and on