Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Ship Custom Font with Perl TK

by mihirjha (Novice)
on Feb 06, 2008 at 10:51 UTC ( #666517=perlquestion: print w/replies, xml ) Need Help??
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
      I have changed my problem. Please look into it now. Regards, Mihir
Re: Ship Custom Font with Perl TK
by zentara (Archbishop) 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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://666517]
Approved by moritz
[GrandFather]: It's a good day end here Corion. The start was somewhat less than average!
[Corion]: GrandFather: All's well that ends well? ;)
[GrandFather]: I'm fighting with a third party device our software is to support. The documentation for the device's SDK is quite a lot less than average and most of today was spent ...
[GrandFather]: discovering that one of the sensors for the device lies about the gain range it is using!
[GrandFather]: However, by the end of the day I had discovered its deceptions and now have it working correctly, so yes, all's well that ends well. :-D
[Corion]: GrandFather: Ah, (hardware) APIs - I have a similar situation with Chrome and its API... It is fairly underdocumented and I guess I have to hunt...
[Corion]: ... down supposedly working code to find out what I'm supposed to do

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2017-08-24 07:06 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (365 votes). Check out past polls.