Version 2 of font actual

Updated 2004-02-18 13:53:47

font actual font ?-displayof window? ?option?

Returns information about the the actual attributes that are obtained when font is used on window 's display; the actual attributes obtained may differ from the attributes requested due to platform-dependant limitations, such as the availability of font families and pointsizes. font is a font description; see FONT DESCRIPTIONS below. If the window argument is omitted, it defaults to the main window. If option is specified, returns the value of that attribute; if it is omitted, the return value is a list of all the attributes and their values. See FONT OPTIONS below for a list of the possible attributes.


Question: what kind of paramater is given to the -displayof argument? A Tk window name ?

For instance, if I say:

 button .b -font fixed
 font actual -dislayof .b

I see an error. However, I seem to get somem sort of answer when I say:

 font actual .b

Is the results the real information, or the info that Tk uses, then deviates from until it finds a best match?


See also:


Tk syntax help - Category Command - Category Introspection