ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 3日 (月) 02:41:03 JST
------------------------- REMOTE_ADDR = 70.49.49.99 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-txtw-textview ------------------------- @@ -137,7 +137,7 @@ === You will often want to change font - Changing font is easy. You first need to obtain a valid font name, sometimes also called description, since it describes font properties such as "[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]". In API we find the following for Pango::FontDescription: +Changing font is easy. You first need to obtain a valid font name, sometimes also called description, since it describes font properties such as "[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]". In API we find the following for Pango::FontDescription: :Pango::FontDescription.new(str = nil): Creates a new font description from a string representation in the form "[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]", where FAMILY-LIST is a comma separated list of families optionally terminated by a comma, STYLE_OPTIONS is a whitespace separated list of words where each WORD describes one of style, variant, weight, or stretch, and SIZE is an decimal number (size in points). Any one of the options may be absent. If FAMILY-LIST is absent, then the family_name field of the resulting font description will be initialized to nil. If STYLE-OPTIONS is missing, then all style options will be set to the default values. If SIZE is missing, the size in the resulting font description will be set to 0. If str is nil, creates a new font description structure with all fields unset.