まつもと ゆきひろです

こんな感じです。

------- Start of forwarded message -------
Date: Thu, 6 Sep 2001 22:19:53 +0900
Posted: Thu, 06 Sep 2001 08:17:32 -0500
From: "Albert L. Wagner" <alwagner / uark.edu>
Subject: [ruby-talk:20957] Re: Is Ruby/Tk being maintained?
To: ruby-talk / ruby-lang.org (ruby-talk ML)

Hi, Matz.  Thank you for your reply.  Would Mr. Nagai prefer that
I send to him directly? I am running on Win32 during the day at
work and on Linux at night at home.  On windows I am running the
executable installation ruby164-2.exe and whatever Tk comes with
it.  I am at work now so I don't remember exactly the versions I
have installed on Linux, but I'll get it to you tonight.  I'm
pretty sure it's the same.  I can send you and Mr. Nagai copies
of my program (about 700 lines) or I can try to build a small
script that duplicates the problem.  I have included below the
output from the same program on Win32.  Interestingly, it seems
to want a different font.  As before, it runs fine with the
courier 12 font, and only fails when invoked with the -rdebug
option.

        @courier12             =
'-*-Courier-*-R-Normal--*-120-*-*-*-*-*-*'        
  
        # Define text widget to hold table
        @doc = TkText.new(parent,
            'relief'        => 'sunken',
            'bd'            => '2',
            'font'          => @courier12,
            'wrap'          => 'none'
            )


Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-1999 Microsoft Corp.

C:\>d:

D:\>cd rubyApps

D:\rubyApps>ruby -rdebug tableEditor.rb
Debug.rb
Emacs support available.

tableEditor.rb:1:module TableEditor
(rdb:1) b point
Set breakpoint 1 at tableEditor.rb:point
(rdb:1) c
/cygdrive/d/ruby/lib/ruby/1.6/tk.rb:966: `named font "{MS Sans
Serif} 8" doesn't
 exist' (RuntimeError)
        from /cygdrive/d/ruby/lib/ruby/1.6/tkfont.rb:179:in
`init_widget_font'
        from /cygdrive/d/ruby/lib/ruby/1.6/tk.rb:2096:in
`font_configinfo'
        from /cygdrive/d/ruby/lib/ruby/1.6/tk.rb:2125:in
`latinfont_configure'
        from /cygdrive/d/ruby/lib/ruby/1.6/tk.rb:2107:in
`font_configure'
        from /cygdrive/d/ruby/lib/ruby/1.6/tk.rb:2247:in
`configure'
        from /cygdrive/d/ruby/lib/ruby/1.6/tk.rb:2349:in
`initialize'
        from /cygdrive/d/ruby/lib/ruby/1.6/tktext.rb:136:in `new'
        from /cygdrive/d/ruby/lib/ruby/1.6/tktext.rb:136:in `new'
        from tableEditor.rb:378:in `initialize'
        from tableEditor.rb:712:in `new'
        from tableEditor.rb:712
/cygdrive/d/ruby/lib/ruby/1.6/tk.rb:966:       
_fromUTF8(__invoke(*cmds), @enco
ding)
(rdb:1)
------- End of forwarded message -------