Orchid_NL has asked for the wisdom of the Perl Monks concerning the following question:
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.
The fonts I'm trying to use are installed in my Windows font folder. The Tk::Canvas documentation refers to Tk_GetFontStruct to get valid fonts but I can't find any information how to do this. Also I can't find any information how to change the font size.
Does anybody know how to change the font (size) in Tk::Canvas on a Windows machine?
Help is much appriciated!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk::Canvas font problem
by keszler (Priest) on Jun 27, 2004 at 12:54 UTC | |
by Orchid_NL (Novice) on Jun 27, 2004 at 13:19 UTC | |
by keszler (Priest) on Jun 27, 2004 at 15:09 UTC | |
|
Re: Tk::Canvas font problem
by zentara (Cardinal) on Jun 27, 2004 at 12:57 UTC | |
by Orchid_NL (Novice) on Jun 27, 2004 at 13:17 UTC | |
|
Re: Tk::Canvas font problem
by mawe (Hermit) on Jun 27, 2004 at 15:58 UTC | |
by Anonymous Monk on Jun 29, 2004 at 20:38 UTC |