ruby-****@sourc*****
ruby-****@sourc*****
2009年 2月 12日 (木) 23:24:12 JST
------------------------- REMOTE_ADDR = 74.15.84.244 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-fichoo-fontbtt ------------------------- @@ -75,7 +75,7 @@ === Font Manipulation Methods -You should be able to to modify font used in most any widget with the Gtk::Widget#modify_font(font), providing font is an instance of Pango::FontDescription. However currently (Ruby 1.8.6 and Ruby-GNOME2 rel 2-0.17.0-rc1) this does not seem to be the case. I was only able to manipulate fonts on Gtk::Label objects and editable objects like Gtk::Entry. I could not change font on button text or button labels. I believe this will change in the future. Those of you who wish to revisit the example programs where font is manipulated and where I discovered the font problem I suggest you visit the session ((<Fixed Containers|tut-gtk2-contwidg-fixedcont>)) and read the three short program listings (including comments). +You should be able to to modify font used in most any widget with the Gtk::Widget#modify_font(font), providing font is an instance of Pango::FontDescription. {{image_right("dialog-warning.png")}}However currently (Ruby 1.8.6 and Ruby-GNOME2 rel 2-0.17.0-rc1) this does not seem to be the case. I was only able to manipulate fonts on Gtk::Label objects and editable objects like Gtk::Entry. I could not change font on button text or button labels. I believe this will change in the future. Those of you who wish to revisit the example programs where font is manipulated and where I discovered the font problem I suggest you visit the session ((<Fixed Containers|tut-gtk2-contwidg-fixedcont>)) and read the three short program listings (including comments).