Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Get font info OUT of a widget

by kcott (Abbot)
on Mar 22, 2013 at 05:36 UTC ( #1024876=note: print w/ replies, xml ) Need Help??


in reply to Get font info OUT of a widget

G'day mpersico,

Whenever you post a question here that's asking for information related to a module, please ensure you specify which module you are referring to. Vague references to fonts and widgets (as you have here) give no hint as to which of the many Perl GUI modules you're using. Providing a link to the module is even better — see What shortcuts can I use for linking?.

I noted a few of your past nodes asked about Tk. Assuming that's what you're still using, the information you want can be found in the Tk Font documentation. This lists a number of methods which seem to do what you want, e.g. fontMetrics(), fontMeasure(), etc.

-- Ken


Comment on Re: Get font info OUT of a widget
Select or Download Code
Re^2: Get font info OUT of a widget
by mpersico (Beadle) on Mar 22, 2013 at 19:05 UTC
    Eeek. That was bad form. I know better than that...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1024876]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (13)
As of 2014-12-22 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (130 votes), past polls