From: Kouhei S. <ko...@co...> - 2007-01-20 15:17:41
|
Hi, In <45B...@gm...> "Re: [ruby-gnome2-devel-en] pango::layout background color" on Sat, 20 Jan 2007 00:06:21 +0200, Dobai-Pataky Balint <dp...@gm...> wrote: > there is no sample yet: > text_cell = cr.create_pango_layout > text_cell.set_font_description(Pango::FontDescription.new("sans 12")) > text_cell.set_text('test') > i wanna set background for this pango layout, or something similar. > i wanted to place a pango rectangle there, to border the text, but it's not > supported. x = ... y = ... w, h = text_cell.pixel_size cr.rectangle(x, y, w, h) cr.draw Thanks, -- kou |