- font actual font ?-displayof window? ?option?


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 .bI see an error. However, I seem to get some sort of answer when I say:
font actual .bAre the results the real information, or the info that Tk uses, then deviates from until it finds a best match?Feb 18th: You're using the wrong syntax for font actual. It should be [font actual font -displayof window], with "-displayof window" being optional. For example:
font actual "Arial" font actual "Arial" -displayof .bIf the font doesn't exist, Tk uses a default; that's what's returned, if you don't have a font called .b and use [font actual .b]. When you use [font actual -displayof .b] you raise an error because you're missing the font argument.