in reply to Re^2: How can i add a font file in Perl Tk?
in thread How can i add a font file in Perl Tk?
I think it can be accomplished too, even if more complicated. You can build your executable including the font file, then you can start your program (maybe a BEGIN block?) checking if the font is present.
If the font is not already present you can automate the installation. In this case you must be aware of different font installation way depending on the OS the program is running on checking $^O variable.
UPDATE if you do not want automate the font installation you can have a default one set at top of the program, before checking the existence of the font on the system, if not present or failed font installation your program will use the default one. This seems wise.
So you'll have font options specified with -font => [$font_name, 14]
L*
|
|---|