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

hi Monks! I want to ship some of my own font with perl tk. Where should I copy the fonts files in perl tk installation, so that it become available to us by default. regards, Mihir

Replies are listed 'Best First'.
Re: Custom Font with Perl TK
by moritz (Cardinal) on Feb 06, 2008 at 10:57 UTC
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Ship Custom Font with Perl TK
by zentara (Cardinal) on Feb 06, 2008 at 14:20 UTC
    Fonts are a system level item. If you wanted to try and ship fonts, you would need to pre-install the fonts as root ( or System Administrator ), and that would include include running any programs needed to properly incorporate the fonts into your system. It isn't easy.

    The only possible thing you could do, is make images of each letter, base64encode them, and do your work on a canvas, where you can intercept the keypress binding, then insert your image instead of the letter. It wouldn't be scalable, and backgrounds may be a problem.


    I'm not really a human, but I play one on earth. Cogito ergo sum a bum