ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 3日 (月) 06:50:48 JST
------------------------- REMOTE_ADDR = 70.49.49.99 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-txtw-textview ------------------------- @@ -224,7 +224,7 @@ Next we need to tell our Pango::Layout object what is the font we are using in the text buffer, for which we wish to calculate TAB size. At this point we can request the pixel size, which returns an array of width and height elements. As TAB is concerned with the horizontal layout only, we are interested in width only. We will need to convey the size to Pango::TabArray, which we create next. We will accomplish this with Pango::TabArray#set_tab to which just obtained pixel width is passed as the third argument. Finally we pass our tab array object to our text buffer. -Between the following are the description of the methods we used in order to implement our tab size altering functionality: +Between the following are the descriptions of the methods we used in order to implement our tab size altering functionality: --- Gtk::Widget#create_pango_layout(text=nil)