hk_font
Prev | Chapter 2. Classes in alphabetical order | Next

## hk_font

Represents a font object.

Inherits from hk_class.

> hk_font(fontname,fontsize)

>   Constructor to create a font object. E.g. myfont=hk_font("Arial",12)

> set_font(fontname,fontsize)

>   Allows to change the fontdefinition. E.g. myfont.set_font("Courier",16)

> fontname()

>   returns the font name.

> fontsize()

>   returns the font size.

> set_bold()

>   If the font should be displayed in bold you can set it with myfont.set_bold(True)

> bold()

>   returns True if the font is displayed in bold.

> set_italic()

>   If the font should be displayed in italic you can set it with myfont.set_italic(True)

> italic()

>   returns True if the font is displayed in italic.

Prev | Up | Next
hk_dsvisible | Home | hk_form