comp.lang.ada
 help / color / mirror / Atom feed
From: "ldries46" <bertus.dries@planet.nl>
Subject: Re: Pango in GtkAda Gtk version 3
Date: Fri, 31 Jan 2014 15:09:25 +0100
Date: 2014-01-31T15:09:25+01:00	[thread overview]
Message-ID: <52ebaf01$0$16503$703f8584@news.kpn.nl> (raw)
In-Reply-To: <1dxm5lvmvxnxq.1i8lg92ra622o$.dlg@40tude.net>

After a while searching I could not find the procedure or function
Create_Layout. Finally I just found Show_Layout which shows a Layout in a 
CR.

procedure Show_Layout (Cr : Cairo_Context; Layout : Pango_Layout);

>To use a Pango font with Cairo, you should:

>1. create a Pango_Layout on the given context (Create_Layout);
>2. set Pango font there (Set_Font_Description);
>3. set text to render into the layout (Set_Text);
>4. draw the layout (Show_Layout_Line).

>Nowhere. GTK+ 3.x does not have drawing area anymore.

May be not but why is it then possible in Glade 3.14.2 to create one and you 
can write lines in it.

L. Dries 

  reply	other threads:[~2014-01-31 14:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-31  9:27 Pango in GtkAda Gtk version 3 ldries46
2014-01-31 10:24 ` Dmitry A. Kazakov
2014-01-31 14:09   ` ldries46 [this message]
2014-01-31 18:40     ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox