From: Hidetoshi NAGAI Date: 2003-08-20T00:43:20+09:00 Subject: Re: Tk: non-default font 16 x slower Hi, From: Richard Zidlicky Subject: Re: Tk: non-default font 16 x slower Date: Tue, 19 Aug 2003 20:40:55 +0900 Message-ID: <20030819105527.GA2197@linux-m68k.org> > very good tip, but why is font creation so exceedingly slow > anyway? Ruby/Tk recommends to distinguish between (1) widgets have the *SAME* font, and (2) widgets coincidentally have the fonts with same properties. That is the reason of creating a named font when a font name is given to 'font' option. When properties of a TkFont object are changed, displayed font images of all widgets given the TkFont object are changed. However, it needs large cost to create a new named font. So, Ruby/Tk is slow if you give the 'font' option with a font name to each of many widgets. -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)