Skip to main content

TextDecoration

TextDecoration enum has the following values:

NONE

Do not draw a decoration.

LINE_THROUGH

Draw a line through each line of text.

OVERLINE

Draw a line above each line of text.

UNDERLINE

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)