Skip to content

TextDecoration

TextDecoration #

Bases: IntFlag

TBD

LINE_THROUGH #

LINE_THROUGH = 4

Draw a line through each line of text.

NONE #

NONE = 0

Do not draw a decoration.

OVERLINE #

OVERLINE = 2

Draw a line above each line of text.

UNDERLINE #

UNDERLINE = 1

Draw a line underneath each line of text.

Usage Example#

The enum is a flag, so multiple decorations can be combined together as follows:

style = ft.TextStyle(decoration=ft.TextDecoration.UNDERLINE | ft.TextDecoration.OVERLINE)