Drawing text onto gtk drawable

  • Thread starter Brian Schroeder
  • Start date
B

Brian Schroeder

Well, i read all the available documentation (not much) and looked the the
c sources for libpango-ruby but I can't figure out how to draw text onto a
drawable.

I don't want to do anything more complex than:

window.draw_text(gc, x, y, 'Some text')

If anyone knows anything about this, i would appreciate any pointers.

Best regards,

Brian
 
B

Brian Schroeder

On Sat, 08 May 2004 19:35:16 +0200, Brian Schroeder wrote:


Some things I forgot. I'm using gtk2. And I seem to have to get from
somewhere a Pango::Layout object, but I don't know how.
 
J

Jeremy Henty

Some things I forgot. I'm using gtk2. And I seem to have to get from
somewhere a Pango::Layout object, but I don't know how.

If you're going to work with ruby-gtk2 I highly recommend joining the
mailing list.

http://sourceforge.net/mail/?group_id=53614

The people there are friendly and helpful and answer questions like
yours all the time. In fact they already *have* answered it! I
searched for "Pango" on the sourceforge archive and found this:

http://sourceforge.net/mailarchive/message.php?msg_id=6323256

There are also lots of of sample code examples in the Ruby-Gnome
distribution. I found these very helpful in getting up to speed.

Hope this helps,

Jeremy
 
B

Brian Schroeder

Thanks a lot for the answer. I did not encounter the mailing list by
myself and it is a great resource.

Funny though, that google does not seem to index it.

Regards,

Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top