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!
In reply to Tk::Canvas font problem by Orchid_NL
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |