couldn't load font "宋体 9", falling back to "Sans 9", expect ugly output.

Windows下使用Ruby-GNOME2写GUI时,会报以下错误:
Pango-WARNING **:couldn't load font "宋体 9", falling back to "Sans 9", expect ugly output.

解决方法:
修改 %ruby%\lib\GTK\etc\gtk-2.0/gtkrc 为::
style "user-font"
{
  font_name="Simsun 10"
}
widget_class "*" style "user-font"
gtk-theme-name = "MS-Windows"

参考网址:
http://old.nabble.com/-CPyUG:85085--py2exe%E6%89%93%E5%8C%85%E5%90%8E%E7%95%8C%E9%9D%A2%E9%A3%8E%E6%A0%BC%E6%94%B9%E5%8F%98%E9%97%AE%E9%A2%98-td23268605.html

你可能感兴趣的:(html,windows,Ruby)