mouser13 has asked for the wisdom of the Perl Monks concerning the following question:

Hi, just wondering if any knew of a way to add new custom fonts to perl Tk. I'm moving programs off a Unix server on to user desktops and we don't have permission to add to windows font directory.

Replies are listed 'Best First'.
Re: Perl Tk font
by Sinistral (Monsignor) on Jan 04, 2011 at 13:56 UTC

    First, if you haven't found the resource, the Tk Tutorial is amazing, and has a large section detailing fonts. That being said, Tk relies on the fonts that are installed on "the system", whether that's *NIX, Mac, or Windows. In the case of Windows, you have to have the font installed at the OS level before it can be used. You can't specify a path to an arbitrary font file and have Tk use that for rendering text.

Re: Perl Tk font
by Anonymous Monk on Jan 04, 2011 at 23:28 UTC
    most probably you experience problem with starting your Tk application but haven't explained the problem very well.

    maybe just adopting couple of lines about fonts to fit windows environment is your actual problem?

    just a guess :)