The font Command

Table 39-3 summarizes the font command. In the table, font is either a description of font parameters, a logical font name, a system font name, or an X font name. The -displayof option applies to X where you can have windows on different displays that can support different fonts. Note that when you delete a logical font name with font delete, the font is not really deleted if there are widgets that use that font.

Table 39-3. The font command.
font actual font ?-displayof window? ?option?Returns the actual parameters of font.
font configure fontname ?option? ?value option value?Sets or queries the parameters for fontname.
font create ?fontname? ?option value ...?Defines fontname with the specified parameters.
font delete fontname ...

Get Practical Programming in Tcl & Tk, Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.