Tk: non-default font 16 x slower

kero@chello.single-dot.nl wrote:

  Use a font explicitely, not only string references (which causes the font
  to be built over and over again), like: font = TkFont.new('courier')
  widget.font(font)

Aha, that helped: I said:

font => ‘Courier’

instead of

font => TkFont.new(‘courier’)

and I still don’t know where I should have found this information…

···


Wybo