Options

The constructor and the config method supports the following options.

Table 25-1. Font Options

Option

Type

Description

font

font

Font specifier (name, system font, or (family, size, style)-tuple). If you use this option, FIXME

family

string

Font family.

size

integer

Font size in points. To give the size in pixels, use a negative value.

weight

constant

Font thickness. Use one of NORMAL or BOLD. Default is NORMAL.

Note that these constants are defined in the tkFont module.

slant

constant

Font slant. Use one of NORMAL or ITALIC. Default is NORMAL.

Note that these constants are defined in the tkFont module.

underline

flag

Font underlining. If 1 (true), the font is underlined. Default is 0 (false).

overstrike

flag

Font strikeout. If 1 (true), a line is drawn over text written with this font. Default is 0 (false).