From: Richard Zidlicky Date: 2003-08-19T20:40:55+09:00 Subject: Re: Tk: non-default font 16 x slower On Tue, Aug 19, 2003 at 05:21:58AM +0900, Kero van Gelder wrote: > On Mon, 18 Aug 2003 19:52:35 +0900, Wybo Dekker wrote: > > > When I use the default fonts in my Ruby-Tk application it takes > > 400 milliseconds to start up. When I use Helvetica or other fonts it takes > > 6400 seconds. Is there something I can do about that? Perl does not have > > that problem. > > Use a font explicitely, not only string references (which causes the font > to be built over and over again), like: > > font = TkFont.new('courier') very good tip, but why is font creation so exceedingly slow anyway? On a Pentium 100 it used to take a few seconds with a font that was already cached by xfs. Richard