in reply to How can i add a font file in Perl Tk?
I think the font file you downoladed is a system thing not a Tk one: I mean that, once you installed the font on your system you can use it in your Tk program.
The font name becomes the family in the Tk terminology. In the following example you can see a code named font ( single name that refers to a combination of family, size..) using the courier family already installed on the system.
my $code_font = $mw->fontCreate('code', -family => 'courier', -size => + 14);
L*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can i add a font file in Perl Tk?
by Muskovitz (Scribe) on Jul 27, 2017 at 10:05 UTC | |
by Discipulus (Canon) on Jul 27, 2017 at 10:14 UTC |