ruby-****@sourc*****
ruby-****@sourc*****
2013年 3月 28日 (木) 01:29:39 JST
------------------------- REMOTE_ADDR = 70.49.48.128 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dancr-rbcatut ------------------------- @@ -461,17 +461,11 @@ # Drawing code goes here # ---------------------- - # cr.select_font_face( - # font_family = "Georgia", - # font_slant = cairo.FONT_SLANT_NORMAL, # ............... constant doesn't exist - # font_weight = cairo.FONT_WEIGHT_BOLD # ............... constant doesn't exist - # ) - # cr.select_font_face( - # font_family = "Georgia", - # font_slant = Pango::FontDescription::STYLE_ITALIC, # .... constant doesn't work - # font_weight = Pango::FontDescription::WEIGHT_BOLD # .... constant doesn't work - # ) - cr.select_font_face("Sans", nil, nil) + cr.select_font_face( + font_family = "Georgia", + font_slant = Cairo::FONT_SLANT_NORMAL, + font_weight = Cairo::FONT_WEIGHT_BOLD + ) cr.set_font_size(0.8) cr.set_source_rgb(0, 0, 1)