in reply to Tk::Canvas font problem

Changing the font with the -font option doesn't do anything: $canvas->createText($x1, $y1, -font 'Century', -text => 'Hello world'); It defaults to the (system?) font.

I think you need a comma or a => between -font and "Century'

-font=>'Century'
(Assuming that is your real code )

I'm not really a human, but I play one on earth. flash japh

Replies are listed 'Best First'.
Re^2: Tk::Canvas font problem
by Orchid_NL (Novice) on Jun 27, 2004 at 13:17 UTC
    Sorry, forgot that in my question. In the real code I use a '=>'